Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 146
  • Last Modified:

Setting the focus to a certain tab.

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
ADawn
Asked:
ADawn
1 Solution
 
Brendt HessSenior DBACommented:
Just add the code:

SSTab1.Tab = 0 ' (or 1,2, etc)
0
 
KarcOriginCommented:

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
 
ADawnAuthor Commented:
Thanks, ADawn.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now