ComponentOne Menus and Toolbars for WinForms
Closing a DockingTabPage
Menus and Toolbars for WinForms Task-Based Help > DockingTab Tasks > Closing a DockingTabPage

You can close the C1DockingTabPage in code by using the TabVisible property of the C1DockingTabPage. The following code can be used for closing the first page:

To write code in Visual Basic

Visual Basic
Copy Code
Me.C1DockingTab1.TabPages(0).TabVisible = False

To write code in C#

C#
Copy Code
this.C1DockingTab1.TabPages(0).TabVisible = False;
See Also