We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to display custom text in the WinForms ProgressBarAdv?

Platform: WinForms |
Control: ProgressBarAdv

Display the custom text

You can display the custom text in the ProgressBarAdv to indicate the status of the task instead of the percentage or value complete. The steps to achieve this are as follows.

  1. Set the ProgressBarAdv’s TextStyle to Custom.
  2. Handle the ProgressBarAdv's ValueChanged event, and set e.Text = "your desired text" and e.Handled = True.

The following code example demonstrates the same.


//Raises the value changed event.
this.progressBarAdv1.ValueChanged += new Syncfusion.Windows.Forms.Tools.ProgressBarValueChangedEventHandler(progressBarAdv1_ValueChanged);
//Specifies the ProgressBarAdv text value.
void progressBarAdv1_ValueChanged(object sender, Syncfusion.Windows.Forms.Tools.ProgressBarValueChangedEventArgs e)
    e.Text = "ProgressBarvalue is changing";
    e.Handled = true;


'Raises the value changed event.
AddHandler progressBarAdv1.ValueChanged, AddressOf progressBarAdv1_ValueChanged
'Specifies the ProgressBarAdv text value.
Private Sub progressBarAdv1_ValueChanged(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Tools.ProgressBarValueChangedEventArgs)
 e.Text = "ProgressBarvalue is changing"
 e.Handled = True
End Sub

Specified the text value as custom

Figure 1: ProgressBarAdv Text value specified as Custom

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile