Solved

Setting the focus to a certain tab.

Posted on 2002-03-26
3
136 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Pull multiple cvs files into one access table 28 68
vb6 connector to mongodb 2 79
Exit a vb6 apps when a calling it apps closes 15 46
Hide vba in gp 7 93
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…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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 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…

816 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

8 Experts available now in Live!

Get 1:1 Help Now