# Closing a DockingTabPage

Get started with Menus and Toolbars for WinForms. Create versatile menus and docking/floating toolbars. See more in documentation here.

## Content



You can close the [C1DockingTabPage](/componentone/docs/win/online-menus-toolbar/) in code by using the [TabVisible](/componentone/docs/win/online-menus-toolbar/) property of the [C1DockingTabPage](/componentone/docs/win/online-menus-toolbar/). The following code can be used for closing the first page:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
Me.C1DockingTab1.TabPages(0).TabVisible = False
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
this.C1DockingTab1.TabPages(0).TabVisible = False;
```

DOC-DETAILS-TAG-CLOSE

## See Also

[Determining if the DockingTab is Floating](/componentone/docs/win/online-menus-toolbar/menusandtoolbarsforw2/dockingtabtasks/determiningifthec1do)