Articles in this section
Category / Section

How to display percentage value in the WinForms ProgressBarAdv?

1 min read

Display percentage and value

You can display the percentage value in the ProgressBarAdv by using the TextStyle property. This property helps you to specify the format of the text value in the ProgressBarAdv. The categories of the ProgressBarTextStyles are:

  1. Percentage.
  2. Value.

Percentage: Specifies the text of the ProgressBarAdv in the percentage value.

 

Value: Specifies the text of the ProgressBarAdv in a specified value format. The format is the ProgressBarAdv value or the Maximum value. For example, the value is displayed as 75/100.

C#

//Sets the text of the ProgressBarAdv in the percentage value.
this.progressBarAdv1.TextStyle = Syncfusion.Windows.Forms.Tools.ProgressBarTextStyles.Percentage;
//Sets the text of the ProgressBarAdv in value of the format.
this.progressBarAdv1.TextStyle = Syncfusion.Windows.Forms.Tools.ProgressBarTextStyles.Value;

VB

'Sets the text of the ProgressBarAdv in the percentage value.
Me.progressBarAdv1.TextStyle = Syncfusion.Windows.Forms.Tools.ProgressBarTextStyles.Percentage
'Sets the text of the ProgressBarAdv in value of the format.
Me.progressBarAdv1.TextStyle = Syncfusion.Windows.Forms.Tools.ProgressBarTextStyles.Value

 

Text value specified as percentage

Figure 1: ProgressBarAdv TextValue specified as Percentage

Text value specified as Value

Figure 2: ProgressBarAdv TextValue specified as Value.

Samples:

C#: ProgressBarAdv_TextStyle_C#

VB: ProgressBarAdv_TextStyle_VB

Reference link: https://help.syncfusion.com/windowsforms/progress-bar/text-settings

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied