This topic illustrates how to use the C1TaskbarButton control's progress indicator. In this tutorial, you'll set the value of the progress indicator to the value of a track bar.
Complete the following steps:
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
Private Sub trackBar1_Scroll(sender As Object, e As EventArgs) C1TaskbarButton1.ProgressIndicator.Value = trackBar1.Value C1TaskbarButton1.ProgressIndicator.Show() End Sub |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
private void trackBar1_Scroll(object sender, EventArgs e)
{
c1TaskbarButton1.ProgressIndicator.Value = trackBar1.Value;
c1TaskbarButton1.ProgressIndicator.Show();
}
|
|