$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
CommandBar Control for C# Windows Forms
Easily customize the CommandBar Control at design time in WinForms C# projects
Home > WinForms UI Controls > User Manual > Design Time in C#

Design-Time CommandBar Support for WinForms C# Tutorial

The WinForms CommandBar control is a powerful and easy to use user interface control for Windows Forms applications. This CommandBar control provides large flexibility for developers to customize it. The flexible CommandBar Controls allow users easily change, rearrange, and resize the CommandBar Control in WinForms project at run time for customization. In addition, .NET Forms developers can customize the CommandBar control at design time. The following tutorial shows more details.

How to Add a CommandBar to a Form

It is really easy for users to add a CommandBar control to a form. The below simple steps can achieve this.
  1. Add the CommandBar Control to your WinForms projects toolbox
  2. Drag the CommandBar from the toolbox and drop it on the form you are designing.
  3. The CommandBar control will place the bar horizontally and dock it to the top of the form as default.
  4. If users need to change the orientation of the command bar, just change the dock style and size from the property grid.

How to Add Row Element to Bar Element

There are two ways available for adding a row element to a command bar element. This first way is to click on the blank area of the CommandBar control, which is above the shaded band and. To create more rows, just do a few more times as just way.
The second way is to edit line elements as the below steps:
  1. Users need to choose the CommandBar control on the .NET Forms project
  2. Then open the command bar Smart Tag menu.
  3. Choose the Add Row to add a row, or open the Collection Editor to customize rows
  4. Hit the Add button in the Element Collection Editor to add a new row element.
  5. Click OK to finish the process of add a row to bar element.

How to Add a Strip to Row Element

It is possible to add a command bar strip element to a command bar row element by using the + button in the CommandBar control. Otherwise, the below steps can also edit strip elements.
  1. Choose a CommandBarRowElement in the property window.
  2. Open the Smart Tag menu in the CommandBarRowElement.
  3. Choose the Add New Strip button to add a strip element, or open the Collection Editor to customize rows
  4. Choose the Add button to add a new strip element to the row element.
  5. Click OK to finish the process of add a strip to row element.

How to Add an Item to Strip Element

The CommandBar control allows users to add an item to a Command bar strip element by clicking on the down arrow button, place the item in the strip, and choose the item type to add. Otherwise, the below steps can also edit items
  1. Choose a CommandBarStripElement form the drop down list.
  2. Open the Smart Tag menu in the CommandBarStripElement
  3. Choose the Edit Items to open Collection Editor.
  4. Choose the Add button to add items in the Element Collection Editor.
  5. Click OK to finish the process of add items to strip element.
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls