Solved

Setting the focus to a certain tab.

Posted on 2002-03-26
3
140 Views
Last Modified: 2010-05-02
Hello,

VB6

I have a SSTab control. If I'm on tab 4 (Labeled: Options), after I click the Save command button, I want the focus to move from the 4th Tab on the control, to the first tab on the tab control.

Thanks, ADawn
0
Comment
Question by:ADawn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 32

Accepted Solution

by:
Brendt Hess earned 10 total points
ID: 6897504
Just add the code:

SSTab1.Tab = 0 ' (or 1,2, etc)
0
 
LVL 5

Expert Comment

by:KarcOrigin
ID: 6898149

If SSTab1.TabEnabled(Index) Then
    SSTab1.Tab = Index
End If

Note: Here "Index" is any number on which you want to set the tab.

Hope this will help you.

KarcOrigin
0
 

Author Comment

by:ADawn
ID: 6902473
Thanks, ADawn.
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month5 days, 17 hours left to enroll

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question