Hiding Tabs on TabCtl

RevJeff

Registered User.
Local time
Today, 17:45
Joined
Sep 18, 2002
Messages
129
Hello everyone!

I have a form, frmEmployeeData, that has a subform, frmSubEmpData. On the subform I have a Tab Control, TabCtl0, with four tabs on it.

What I am trying to do is: When the form opens, the Tab Control isn't visible, but as the user checks a check box on the main form, the corrisponding tab on the Tab Control becomes visible.

So if the user only needs to select one of the check boxes, then only that tab is visible, but if the user needs to check all four check boxes, then all four tabs are visible.

I have tried all kinds of things, but nothing seems to work.

Any help would be greatly apprecieated.

Thanks in advance!

Jeff
 
To hide first page, (index start from 0).
Code:
    Me.TabCtl0.Pages(0).Visible = False
 

Users who are viewing this thread

Back
Top Bottom