The C1StatusBar is displayed at the bottom of the Ribbon Form. The C1StatusBar provides panel styles which are used to provide feedback to the Ribbon end users.
To add panel styles which enable the end-users to see the progress bar in the left pane and the track bar in the right pane, complete the following steps:

In the Code Editor, add the following code to enable the items on the left and right panel:
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
' type the Imports directive for the namespace
Imports C1.Win.C1Ribbon
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
trackbar.SmallChange = 1
trackbar.LargeChange = 5
trackbar.Minimum = 0
trackbar.Maximum = 100
trackbar.Value = 30
AddHandler trackbar.Scroll, AddressOf trackbar_Scroll
End Sub
Sub trackbar_Scroll(ByVal sender As Object, ByVal e As EventArgs)
Dim val As Integer = trackbar.Value
progressbar.Value = val
button.Text = val.ToString + "%"
End Sub
|
|
To write code in C#
| C# |
Copy Code
|
|---|---|
// type the using directive for the namespace
using C1.Win.C1Ribbon;
private void Form1_Load(object sender, EventArgs e)
{
trackbar.SmallChange = 1;
trackbar.LargeChange = 5;
trackbar.Minimum = 0;
trackbar.Maximum = 100;
trackbar.Value = 30;
trackbar.Scroll += new EventHandler(trackbar_Scroll);
}
void trackbar_Scroll(object sender, EventArgs e)
{
int val = trackbar.Value;
progressbar.Value = val;
button.Text = val.ToString() + "%";
}
|
|
You have successfully added items to the status bar. Next, you will add C1ThemeController component to the application and apply themes.