# ComboBox

This topic covers details about the combobox in C1Ribbon.

## Content

A ComboBox is a combination of a single-line text box with drop-down list. The **ComboBox** item in this is highlighted below:

![Combobox](https://cdn.mescius.io/document-site-files/images/5560dc72-88a5-4eeb-a384-981194dfc831/images/combobox_1.png)

The **Ribbon ComboBox** can be added at design-time using the Ribbon Group Floating Toolbar or RibbonGroup Items Collection Editor. Also, you can customize the look of the Ribbon ComboBox using the Ribbon ComboBox Floating ToolBar. Refer this [topic](/componentone/docs/win/online-ribbon/concepts/designtimesupport/floatingtoolbar) for more information on floating toolbars. Further, the user can add items to the ComboBox using **RibbonComboBox Items Collection Editor** and **RibbonComboBox Menu Items Collection Editor** from the **Items** and **MenuItems** properties in the **Properties** Window. For detailed information about collection editors, refer this [topic](/componentone/docs/win/online-ribbon/concepts/designtimesupport/collectioneditors).

This image below shows the floating toolbar of ComboBox.

![Floating toolbar](https://cdn.mescius.io/document-site-files/images/5560dc72-88a5-4eeb-a384-981194dfc831/images/combobox_ft.png)

A ComboBox can also be added to the **C1Ribbon** control through the code using the <span data-popup-content="This class is available in \u003ca href=\u0022/componentone/docs/win/online-ribbon/\u0022\u003e.NET\u003c/a\u003e and \u003ca href=\u0022/componentone/docs/win/online-ribbon/\u0022\u003e.NET Framework\u003c/a\u003e." data-popup-title="RibbonComboBox" data-popup-theme="ui-tooltip-green qtip-green">RibbonComboBox</span> class. This is depicted in the code below:

```vbnet
' Add ComboBox ribbon item
Dim ribbonComboBox As RibbonComboBox = New RibbonComboBox()
ribbonComboBox.Label = "State"
ribbonComboBox.TextAreaWidth = 100
Dim defaultView As RibbonButton = New RibbonButton("Default")
Dim comapactView As RibbonButton = New RibbonButton("Compact")
Dim backstageView As RibbonButton = New RibbonButton("BackstageView")
ribbonComboBox.Items.Add(defaultView)
ribbonComboBox.Items.Add(comapactView)
ribbonComboBox.Items.Add(backstageView)
formatGroup.Items.Add(ribbonComboBox)
```

```csharp
//Add ComboBox ribbon item
RibbonComboBox ribbonComboBox = new RibbonComboBox();
ribbonComboBox.Label = "State";
ribbonComboBox.TextAreaWidth = 100;
RibbonButton defaultView = new RibbonButton("Default");
RibbonButton comapactView = new RibbonButton("Compact");
RibbonButton backstageView = new RibbonButton("BackstageView");
ribbonComboBox.Items.Add(defaultView);
ribbonComboBox.Items.Add(comapactView);
ribbonComboBox.Items.Add(backstageView);
formatGroup.Items.Add(ribbonComboBox);
```