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
svetlana2kAsked:
Who is Participating?
 
hafeezmcaConnect With a Mentor Commented:
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
 
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
 
svetlana2kAuthor Commented:
Thank You

Svetlana2k
0
All Courses

From novice to tech pro — start learning today.