# Pinning Tabs

DockingTab control provides AutoHide feature. Learn how to implement it.

## Content

The **DockingTab** control allows users to auto-hide tab pages. For this purpose, the [CanAutoHide](/componentone/docs/win/online-command5/) property can be set to true. DockingTab also displays a pin icon in the caption area, if both the **CanAutoHide** and [ShowCaption](/componentone/docs/win/online-command5/) properties are set to true at the same time.

![Docking tab control with autohide functionality.](https://cdn.mescius.io/document-site-files/images/1086a5ae-7197-4f26-942b-edb381682c69/images/autohide.png)

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.

```csharp
dockingTab.CanAutoHide = true;
dockingTab.ShowCaption = true;
```

>type=note
> Note: To correctly pin and unpin the DockingTab, it must be placed in a CommandDock control.

```vbnet
Me.C1DockingTab1.AutoHiding = False
```