Docking Tab for WinForms | ComponentOne
Docking Operations / Pinning DockingTab
In This Topic
    Pinning DockingTab
    In This Topic

    The DockingTab control allows users to auto-hide tab pages. For this purpose, the CanAutoHide property can be set to true. DockingTab also displays a pin icon in the caption area, if both the CanAutoHide and ShowCaption properties are set to true at the same time.

    Docking tab control with autohide functionality.

    The auto-hiding and pin icon functionality can be set either using the Properties window in the designer or, via the code in the code editor.

    C#
    Copy Code
    dockingTab.CanAutoHide = true;
    dockingTab.ShowCaption = true;
    
    Note: To correctly pin and unpin the DockingTab, it must be placed in a CommandDock control.
    Visual Basic
    Copy Code
    Me.C1DockingTab1.AutoHiding = False