[RESOLVED] [2005] Showing And Hiding Tabs
I'm using the TabControl on a data entry form and I have particular tabs that I only want to be visible when certain check boxes are checked.
I noticed that the TabPanel object has .Show and .Hide methods but they only show/hide the controls on the tab and not the tab itself.
Is there a way of hiding the whole tab so that it is not visible attall in the tab control?
Re: [2005] Showing And Hiding Tabs
The best advice I've seen around is to add and remove the tab pages instead of trying to show and hide them. Seems that feature of the control was overlooked, or looked at very stupidly.
Re: [2005] Showing And Hiding Tabs
so long as you know what the name name of the tab and it's index you may want to create class for this but do something like the following
VB Code:
Me.TabControl1.TabPages.Remove(Me.TabPage1)
Me.TabControl1.TabPages.Insert(0, Me.TabPage1)
Re: [2005] Showing And Hiding Tabs