# Docking and Floating Toolbars

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

## Content



Toolbars can be docked to the top, left, right or bottom on the container that the [C1CommandDock](/componentone/docs/win/online-menus-toolbar/) has been assigned to.

Each [C1ToolBar](/componentone/docs/win/online-menus-toolbar/) resides inside the docking area when it is docked. Toolbars can be moved to different docking areas by using a drag-and-drop operation, and they can also be resized.

![Docking area and floating toolbar](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/dockingareafloatingtoolbars.png)<br />

If you are creating a [C1ToolBar](/componentone/docs/win/online-menus-toolbar/) programmatically and would like to use the [C1CommandDock](/componentone/docs/win/online-menus-toolbar/) to enable docking and floating behavior you would add the toolbar to the C1CommandDock like the following:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
Me.C1CommandDock = New C1.Win.C1Command.C1CommandDock()
Me.C1CommandDock.Controls.Add(Me.C1ToolBar1)
Me.Controls.Add(Me.C1CommandDock)
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
this.c1CommandDock = new C1.Win.C1Command.C1CommandDock();
this.c1CommandDock.Controls.Add(this.c1ToolBar1);
this.Controls.Add(this.c1CommandDock);
```

DOC-DETAILS-TAG-CLOSE

## See Also

[Embedded Controls in Toolbars](/componentone/docs/win/online-menus-toolbar/menusandtoolbarsover/toolbarsappearancean/embeddedcontrolsinto)