Making Tab page visibility True/False selectively


New Member
In app_start I declared a tab control having four tab pages, I use four check boxes as visibility option for these tab pages.

Is it possible to make tab page visibility True/False by checking/unchecking the check boxes accordingly?


Well-Known Member
Licensed User
From what I can see, the Tabcontrol doesn't have this functionality :sign0013:
However, I've had a little play and think that it can be achieved programatically. You need to keep track of the tab pages using an array list and then add and remove as required.
Attached is a little example that I have knocked up for you, it requires the ControlsEx library.
The tab pages are not kept in the original order but this could probably be achieved by disposing of the tab control and then recreating it each time with the desired pages present.