# TextBox

This topic covers textbox item in C1Ribbon.

## Content

A TextBox enables the user to input text information in the application.

The **Ribbon TextBox** item is shown in the image below:

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

### Adding TextBox at Design-Time

The TextBox can be added at design-time using the Floating Toolbar. Refer this [topic](/componentone/docs/win/online-ribbon/concepts/designtimesupport/floatingtoolbar) for detailed information.

The image below depicts the floating toolbar of Ribbon TextBox.

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

### Adding TextBox through Code

A TextBox 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="RibbonTextBox" data-popup-theme="ui-tooltip-green qtip-green">RibbonTextBox</span> class. This is depicted in the code below:

```vbnet
' Add RibbonTextBox
Dim textBox As RibbonTextBox = New RibbonTextBox()
textBox.Text = "Sample Text"
formatGroup.Items.Add(textBox)
```

```csharp
// Add Ribbon TextBox
RibbonTextBox textBox = new RibbonTextBox();
textBox.Text = "Sample Text";
formatGroup.Items.Add(textBox);
```