Articles in this section
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

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied