Solved

Setting the focus to a certain tab.

Posted on 2002-03-26
3
134 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:
bhess1 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now