It's a common mistake to try to use the Visible property of the TabPage to make the tab invisible. But this does not work (The Visible property of the TabPage is essentially obsolete). The TabControl doesn't provide you an easy way to do so.
The workaround is to remove and add the TabPage from the TabControl whenever you want to hide/unhide it. Refer to our other faq on how to insert/delete tab pages in a TabControl for more information.
|