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:
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?
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?