# Track Bar

This topic covers trackbar item in C1Ribbon.

## Content

The Track Bar is a horizontal slider that enables the user to select values on a bar by moving the slider. The tick marks are spaced at regular intervals called the tick frequency. The user can set the Maximum and Minimum values on the TrackBar.

The GIF below shows the **Ribbon TrackBar** in a ribbon application.

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

### Adding TrackBar at Design-Time

The **Ribbon TrackBar** 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 TrackBar using the **Ribbon** **TrackBar** **Floating ToolBar** or by editing the properties in the **Properties** Window. For more information about floating toolbars, refer this [topic](/componentone/docs/win/online-ribbon/concepts/designtimesupport/floatingtoolbar).

The image below depicts the floating toolbar of Ribbon TrackBar.

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

### Adding TrackBar via Code

The TrackBar can also be added programmatically to the Ribbon control 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="RibbonTrackBar" data-popup-theme="ui-tooltip-green qtip-green">RibbonTrackBar</span> class. This is depicted in the code below:

```vbnet
' Add TrackBar 
Dim trackBar As RibbonTrackBar = New RibbonTrackBar()
trackBar.Minimum = 10
trackBar.Maximum = 100
trackBar.Value = 30
trackBar.TickFrequency = 10
formatGroup.Items.Add(trackBar)
```

```csharp
// Add TrackBar 
RibbonTrackBar trackBar = new RibbonTrackBar();
trackBar.Minimum = 10;
trackBar.Maximum = 100;
trackBar.Value = 30;
trackBar.TickFrequency = 10;
trackBar.Width = 200;
formatGroup.Items.Add(trackBar);
```