This topic demonstrates how to specify a position for your C1CommandDock in code.
To dock your toolbar to the top, enter the following code:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
dock.Dock = DockStyle.Top |
To write code in C#
C# |
Copy Code
|
---|---|
dock.Dock = DockStyle.Top; |