ComponentOne Menus and Toolbars for WinForms
Menus and Toolbars for WinForms Task-Based Help / DockingTab Tasks / Closing a DockingTabPage
In This Topic
    Closing a DockingTabPage
    In This Topic

    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