# Specifying a Docking/Floating Position

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

## Content



This topic demonstrates how to specify a position for your [C1CommandDock](/componentone/docs/win/online-menus-toolbar/) in code.

To dock your toolbar to the top, enter the following code:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
dock.Dock = DockStyle.Top
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
dock.Dock = DockStyle.Top;
```

DOC-DETAILS-TAG-CLOSE


> type=note
> **Note**: If you want to dock your toolbar to the bottom, left, or right, change the _Top_ parameter to its desired position: _Bottom_, _Left_ or _Right_.

## See Also

[Turning on the Customization Feature](/componentone/docs/win/online-menus-toolbar/menusandtoolbarsforw2/toolbartasks/turningonthecustomiz)