VB5 SSTAB Navigation

I have a SSTAB contral with 4 tabs on my form

Rather than click on each tab i'd like to click on a command button to navigate the SSTab control.

ie  command1 would bring up tab0     (first tab)
     command2 would bring up tab1     (second tab)

and so on


Can anyone help??
(I origionall had this question listed  in the programing area by mistake)
backflashAsked:
Who is Participating?
 
sirbountyConnect With a Mentor Commented:
Hmm - my apologies up front if this doesn't do it - but in VB6, it's

Private Sub Command1_Click()
  ssTab(0).Tab=0
End Sub

Private Sub Command2_Click()
  ssTab(0).Tab=1
End Sub
0
 
backflashAuthor Commented:
Works like a dream

My control was called SSTAB1 so I used the code
ssTab1.Tab=1

Thanks sirbounty

Kind ragards
backflash
0
 
sirbountyCommented:
Happy to help.  Thanx! : )
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.

All Courses

From novice to tech pro — start learning today.