Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Setting the focus to a certain tab.

Posted on 2002-03-26
3
Medium Priority
?
143 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
3 Comments
 
LVL 32

Accepted Solution

by:
Brendt Hess earned 40 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

971 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