[]
        
(Showing Draft Content)

Docking a Toolbar Programmatically

To make a C1ToolBar dockable by using the C1CommandDock class, complete the following steps:

type=note

Note: This topic assumes you have a C1ToolBar created in code.

  1. Create a new C1CommandDock and call it dock.

    To write code in Visual Basic

    Dim dock As New C1CommandDock()
    

    To write code in C#

    C1CommandDock dock = new C1ComandDock();
    
  2. Add the C1CommandDock to your control so it will appear on the form.

    To write code in Visual Basic

    Me.Controls.Add(dock)
    

    To write code in C#

    this.Controls.Add(dock);
    

See Also

Increasing the Image Size in the Toolbar