# Properties

| Property                    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **TrackBarElement**         | Gets the instance of RadTrackBarElement wrapped by this control. RadTrackBarElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadTrackBar.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Minimum** and **Maximum** | Specify the lower end and upper end of the range which thumbs can scroll over. It is possible to specify a negative value for the Minimum.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Value**                   | Gets or sets the value of the thumb in *SingleThumb* mode of RadTrackBar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **TickStyle**               | Controls whether the tick marks are drawn on one or both sides of the control. The default value is *Both*. Setting **TickStyle** to *None* will disable the ticks. Setting **TickStyle** to *Both* will enable ticks on both sides. Setting **TickStyle** to *TopLeft* will show only the ticks on the top side, when the Orientation is Horizontal. If the Orientation is set to Vertical, only the ticks on the left side will be shown. Setting **TickStyle** to *BottomRight* will show only the ticks on the down side, when the Orientation is Horizontal. If the Orientation is set to Vertical, only the ticks on the right side will be shown.                  | ![WinForms RadTrackBar TickStyle Top](https://www.telerik.com/products/winforms/documentation/assets/1008ab2c9b7f2f909a85188334874450/track-and-status-controls-trackbar-programming-radtrackbar025.png)</br> ![WinForms RadTrackBar TickStyle Bottom](https://www.telerik.com/products/winforms/documentation/assets/0f39e9c60db9f65815a56e3eba8bc572/track-and-status-controls-trackbar-programming-radtrackbar026.png) </br> ![WinForms RadTrackBar TickStyle Both](https://www.telerik.com/products/winforms/documentation/assets/b66e58e4e3fd24aad718cc6fee65ea0f/track-and-status-controls-trackbar-programming-radtrackbar027.png)</br> ![WinForms RadTrackBar TickStyle None](https://www.telerik.com/products/winforms/documentation/assets/39d6e0a270a9d19fc958ecd25018f6c8/track-and-status-controls-trackbar-programming-radtrackbar028.png) |
| **Orientation**             | Gets or Sets the orientation of the RadTrackBar.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | ![WinForms RadTrackBar Horizontal Orientation](https://www.telerik.com/products/winforms/documentation/assets/89f7ff29e09e58cf6d767361ffa16bae/track-and-status-controls-trackbar-programming-radtrackbar029.png)</br>![WinForms RadTrackBar Vertical Orientation](https://www.telerik.com/products/winforms/documentation/assets/39fe29d792dfb931cad5d368825d5804/track-and-status-controls-trackbar-programming-radtrackbar030.png)                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **LargeChange**             | Gets or sets the change in value that one click of the mouse outside of the slider makes. Let's say that the position of your thumb is at the beginning of the **RadTrackBar** (at position *0*), the value of this property is *5* and you click on tick number 14. The thumb will reposition itself to tick number *5*, following the step determined by the **LargeChange** property. However, if the **LargeChange**  has value 0, the thumb will move to position 14.                                                                                                                                                                                                |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **SmallChange**             | Gets or Sets the number of positions that the trackbar moves in response to keyboard arrow keys and the trackbar buttons.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **TextOrientation**         | Gets or Sets the orientation of the text associated with TrackBar. Whether it should appear horizontal or vertical.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | ![WinForms RadTrackBar TextOrientation](https://www.telerik.com/products/winforms/documentation/assets/d7ff83f13f58cf0fe5dee09ee64aad02/track-and-status-controls-trackbar-programming-radtrackbar031.png)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| **LabelStyle**              | Gets or Sets whether the RadTrackBar's labels should be drawn.The default value is None. *TopLeft* value will show only the labels on the top side, when the Orientation is Horizontal. If the Orientation is set to Vertical, only the labels on the left side will be shown.  *BottomRight* value will show only the labels on the bottom side, when the Orientation is Horizontal.  If the Orientation is set to Vertical, only the labels on the right side will be shown. *BottomRight* - will show only the labels on the bottom side, when the Orientation is Horizontal.  If the Orientation is set to Vertical, only the labels on the right side will be shown. | ![WinForms RadTrackBar LabelStyle None](https://www.telerik.com/products/winforms/documentation/assets/d8c8338d4cd20c6b4fa9249d3bd2d6d9/track-and-status-controls-trackbar-programming-radtrackbar032.png)</br>![WinForms RadTrackBar LabelStyle Top](https://www.telerik.com/products/winforms/documentation/assets/97a9d864665ec8d4c12743016c2027ac/track-and-status-controls-trackbar-programming-radtrackbar033.png)</br>![WinForms RadTrackBar LabelStyle Bottom](https://www.telerik.com/products/winforms/documentation/assets/3fefcdc3d310c3f7dab701538d08e8fa/track-and-status-controls-trackbar-programming-radtrackbar034.png)</br>![WinForms RadTrackBar LabelStyle Both](https://www.telerik.com/products/winforms/documentation/assets/40d717ef2703b3bc04cd8f44034bf7bc/track-and-status-controls-trackbar-programming-radtrackbar035.png) |
| **ShowButtons**             | Controls the visibility of the navigation buttons in RadTrackBar. By default these buttons are not displayed. To show them, set the property to true.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | ![WinForms RadTrackBar ShowButtons](https://www.telerik.com/products/winforms/documentation/assets/fbaf8b07a7de2d0b6222b8d581d0265e/track-and-status-controls-trackbar-programming-radtrackbar036.png)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **LargeTickFrequency**      | Sets the spacing between the large tick marks. The default value is *5*.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | ![WinForms RadTrackBar LargeTickFrequency](https://www.telerik.com/products/winforms/documentation/assets/4ffbd11b5246f2e4b49e21d25aa3ea31/track-and-status-controls-trackbar-programming-radtrackbar015.png)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **SmallTickFrequency**      | Sets the spacing between the small tick marks. The default value is 1.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | ![WinForms RadTrackBar SmallTickFrequency](https://www.telerik.com/products/winforms/documentation/assets/743bfcefc61f5905676a22d0a91a1e92/track-and-status-controls-trackbar-programming-radtrackbar016.png)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **TrackBarMode**            | Determinates in which mode the control will operate.  Each [WinForms RadTrackBar mode](https://www.telerik.com/products/winforms/documentation/controls/track-and-status-controls/trackbar/modes) has different functionality and behavior.                                                                                                                                                                                                                                                                                                                                                                                                                               | ![WinForms RadTrackBar TrackBarMode](https://www.telerik.com/products/winforms/documentation/assets/5ba43b65e3511eb4cb3f88ac4bc7be26/track-and-status-controls-trackbar-programming-radtrackbar017.png)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| **Ranges**                  | Gets the TrackBarRangeCollection.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **SnapMode**                | Controls the way the thumb is moving in RadTrackBar. When this property is set to *SnapToTicks* the thumb is moving only at tick positions.  When the value is set to **None** the slider is moving freely.                                                                                                                                                                                                                                                                                                                                                                                                                                                               | ![WinForms RadTrackBar SnapMode None](https://www.telerik.com/products/winforms/documentation/assets/552b909d9779dcfcb8eea0e4517fb129/track-and-status-controls-trackbar-programming-radtrackbar020.gif)</br>![WinForms RadTrackBar SnapToTick](https://www.telerik.com/products/winforms/documentation/assets/73ea39edb9429cff2f9158d6bd6e7dff/track-and-status-controls-trackbar-programming-radtrackbar021.gif)                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **ThumbSize**               | Gets or Sets TrackBar's Size.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | ![WinForms RadTrackBar ThumbSize](https://www.telerik.com/products/winforms/documentation/assets/89b538776504695a728fd1d4d51a253e/track-and-status-controls-trackbar-programming-radtrackbar021.png)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **ShowSlideArea**           | Controls whether the line down the middle of the control where the slider rides is drawn. The default value is *true*.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | ![WinForms RadTrackBar ShowSlideArea](https://www.telerik.com/products/winforms/documentation/assets/3187719f3c3a5fe86b78f606fd6d8ca0/track-and-status-controls-trackbar-programming-radtrackbar022.png)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

> important As of **R3 2019 SP1** **RadTrackBar** offers the **SnapFrequency** property. Its default value is *TrackBarSnapFrequency.Default* in order to keep the existing behavior unchanged. The other possible value  is *TrackBarSnapFrequency.Ticks* aiming to provide snap-to-ticks behavior if the **SnapMode** property is set to *SnapToTicks*. Thus, you can slide the thumb smoothly snapping to the small/large ticks.

![WinForms RadTrackBar TrackBarSnapFrequency Ticks](https://www.telerik.com/products/winforms/documentation/assets/cb2fe98a9dbb8948b7cb5380d8969305/trackbar-snap-to-ticks001.gif)

# Events

| Event               | Description                                                                                                                                                                                               |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **ValueChanged**    | Occurs after the user drags  the thumb and drops it somewhere on the slider area, or when the **Value** property is set. In this event, you can get the value of RadTrackBar from its **Value** property. |
| **LabelFormatting** | Occurs when a Label needs to be formatted.                                                                                                                                                                |
| **TickFormatting**  | Occurs when a Tick needs to be formatted.                                                                                                                                                                 |

#### Formatting ticks

```C#
void radTrackBar1_TickFormatting(object sender, TickFormattingEventArgs e)
{
    e.TickElement.Line1.BackColor = Color.Red;
}
```

```VB.NET
    Private Sub radTrackBar1_TickFormatting(sender As Object, e As TickFormattingEventArgs)
        e.TickElement.Line1.BackColor = Color.Red
    End Sub
```

![WinForms RadTrackBar Formatting ticks](https://www.telerik.com/products/winforms/documentation/assets/41026c5cc0db929c2f3e359798469021/track-and-status-controls-trackbar-programming-radtrackbar023.png)

#### Formatting labels

```C#
void radTrackBar1_LabelFormatting(object sender, LabelFormattingEventArgs e)
{
    e.LabelElement.ForeColor = Color.Red;
}
```

```VB.NET
    Private Sub radTrackBar1_LabelFormatting(sender As Object, e As LabelFormattingEventArgs)
        e.LabelElement.ForeColor = Color.Red
    End Sub
```

![WinForms RadTrackBar Formatting labels](https://www.telerik.com/products/winforms/documentation/assets/174933c6b620abdb3af93da5112b6c71/track-and-status-controls-trackbar-programming-radtrackbar024.png)

## See Also

* [Properties](https://docs.telerik.com/devtools/winforms/api/telerik.wincontrols.ui.radtrackbar.html#properties)
* [Methods](https://docs.telerik.com/devtools/winforms/api/telerik.wincontrols.ui.radtrackbar.html#methods)
* [Events](https://docs.telerik.com/devtools/winforms/api/telerik.wincontrols.ui.radtrackbar.html#events)
