• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 434
  • Last Modified:

Set focus to first control on SSTab control

How do I set focus to the first control on each tab of an SSTab control as I click from one tab to another. There is only click event of the SSTab

Svetlana2k
0
svetlana2k
Asked:
svetlana2k
1 Solution
 
mannoCommented:
The Tab property tells you which Tab they just clicked.

Also the Click event tells you which one they left.

You could assign the Tab number to the Tag property of the required 'top left' controls and cycle through.
0
 
hafeezmcaCommented:
Hello svetlana.
  Here is the solution for ur query.
 
Private Sub SSTab1_Click(PreviousTab As Integer)
If SSTab1.Tab = 0 Then
    itemname.SetFocus
End If
'similary repeat the above procedure for as many          
 'tabs using a nested if loop.
End Sub
0
 
svetlana2kAuthor Commented:
Thank You

Svetlana2k
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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