Category / Section
How to hide the tab pages in WinForms TabControlAdv?
1 min read
Hide the tab page
You can hide the tabpages using the Hide method. But when a selectedIndexChanged event takes place, it brings up the hidden tabPage to the front.
Hence, as an alternative, you can use the tabVisible property to false, which hides the tab header and set the selected tabpage to some other tabPage as shown below.
C#
this.tabPageAdv1.TabVisible = false; this.tabControlAdv1.SelectedTab = this.tabPageAdv2;
VB
Me.tabPageAdv1.TabVisible = False Me.tabControlAdv1.SelectedTab = Me.tabPageAdv2