Docking Tab for WinForms | ComponentOne
Behavior / Show or Hide Tabs
In This Topic
    Show or Hide Tabs
    In This Topic

    DockingTab provides the choice to either show or hide tabs in the control. For this purpose, DockingTab provides the ShowTabs property, which when set to true displays the tab. And, when set to false, hides the tabs and only shows the docking tab page. By default, the ShowTabs property is always set to true.

    Tab Visibility

    Snapshots

    Show tabs Docking tab showing all tabs
    Hide tabs Docking tab hiding all tabs

    The following code snippet shows how to hide tabs in the DockingTab control:

    C#
    Copy Code
    dockingTab.ShowTabs = false;