# Progress Indication

The RadTaskbarButton component provides you with the possibility to display the progress of a task in the taskbar. To set the progress you need to use the **ProgressPercentage** property. Its value should be between 0 and 100. You can control the progress by increasing this property.

In the following example, we are going to simulate the progress of a running task in the taskbar. On each second, the **ProgressPercentage** property is increased by 10 percent.

```C#
Timer timer = new Timer();
void ShowTaskProgress()
{
    timer.Interval = 1000;
    timer.Tick += Timer_Tick;
    timer.Start();
}

private void Timer_Tick(object sender, System.EventArgs e)
{
    this.radTaskbarButton1.ProgressPercentage += 10;
}
```

```VB.NET
Private timer As Timer = New Timer()
Private Sub ShowTaskProgress()
    timer.Interval = 1000
    AddHandler timer.Tick, AddressOf Timer_Tick
    timer.Start()
End Sub

Private Sub Timer_Tick(ByVal sender As Object, ByVal e As System.EventArgs)
    Me.RadTaskbarButton1.ProgressPercentage += 10
End Sub
```

### Progress State

The progress visualization of the taskbar can be also controlled by the ProgressState property. This way you can add more information to the end user regarding the currently running task progress state. The **ProgressState** property is an enumeration and it exposes the following values.

#### NoProgress

In this state, no progress visualization will appear.

![WinForms RadTaskbarButton ProgressState NoProgress](https://www.telerik.com/products/winforms/documentation/assets/4581217161a404c8c19d1bbdfd8cf3d0/winforms-radtaskbarbutton-progressstate-noprogress.png)

#### Error

In this state, the progress color will be set to red to indicate that an error appears while the task was running.

![WinForms RadTaskbarButton ProgressState Error](https://www.telerik.com/products/winforms/documentation/assets/cb43b77bfb825228bda6bf4ffcd0967f/winforms-radtaskbarbutton-progressstate-error.png)

#### Indeterminate

In this state the progress bar won't respect the **ProgressPercentage** property value, it will continue to load until you set a different state.

![WinForms RadTaskbarButton ProgressState Indeterminate](https://www.telerik.com/products/winforms/documentation/assets/85d55a22fdb802a3d03d182eecbefabe/winforms-radtaskbarbutton-progressstate-indeterminate.gif)

#### Normal

In this state, the progress will appear in its default visualization.

![WinForms RadTaskbarButton ProgressState Normal](https://www.telerik.com/products/winforms/documentation/assets/96be63760fd50c42669ed8ce8ed643ef/winforms-radtaskbarbutton-progresspercentage.png)

#### Pause

In this state, the color of the progress will turn into yellow. In this state, the **ProgressPercentage** property value change should be stopped to show that the currently running task is on pause.

![WinForms RadTaskbarButton ProgressState Pause](https://www.telerik.com/products/winforms/documentation/assets/1c14a3cb77b6fa0bf1f8816596feda5e/winforms-radtaskbarbutton-progressstate-pause.png)

## See Also

* [Structure](https://www.telerik.com/products/winforms/documentation/controls/taskbar-button/structure)

* [Getting Started](https://www.telerik.com/products/winforms/documentation/controls/taskbar-button/getting-started)

* [Design Time](https://www.telerik.com/products/winforms/documentation/controls/taskbar-button/design-time)
