Tab Control - Using Buttons

epicmove

Ben
Local time
Today, 04:24
Joined
Apr 21, 2006
Messages
59
Hi guys,

Just a quickie about Tab Controls. So that I can format them to match the rest of my forms, I have done the following:

Set the backstyle of the tab control to transparent.
Changed the tab control style to None (after creating the individual pages).
Placed buttons on the main form with the following code:

Code:
Private Sub Page1_Click()
Me.TabControl.Pages(0).SetFocus
End Sub

Private Sub Page2_Click()
Me.TabControl.Pages(1).SetFocus
End Sub

This appears to work fine. My question is whether I will lose any of the normal tab control functionality by doing it this way or have any problems?
 

Users who are viewing this thread

Back
Top Bottom