)
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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to apply the gradient color to WinForms ProgressBarAdv?

Platform: WinForms |
Control: ProgressBarAdv |
Published Date: August 31, 2015 |
Last Revised Date: January 7, 2020

Gradient color

You can apply gradient colors to the ProgressBarAdv by using the following steps to customize.

  1. Set the ProgressBarAdv style to Tube.
  2. Define the required color in TubeStartColor and TubeEndColor.

The following code example demonstrates the same.

C#

//Sets style to the ProgressBarAdv.
this.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Tube;
//Specifies the start Tube color.
this.progressBarAdv1.TubeStartColor = System.Drawing.Color.Lime;
//Specifies the TubeEnd Color.
this.progressBarAdv1.TubeEndColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(146)))), ((int)(((byte)(242)))));

VB

'Sets style to the ProgressBarAdv.
Me.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Tube
'Specifies the start Tube color.
Me.progressBarAdv1.TubeStartColor = System.Drawing.Color.Lime
'Specifies the TubeEnd Color.
Me.progressBarAdv1.TubeEndColor = System.Drawing.Color.FromArgb((CInt(Fix((CByte(127))))), (CInt(Fix((CByte(146))))), (CInt(Fix((CByte(242))))))

 

Before specifying the TubeStartColor and TubeEndColor

Figure 1: Before specifying the TubeStartColor and TubeEndColor in the ProgressBarAdv

After specifying the TubeStartColor and TubeEndColor

Figure 2: After specifying the TubeStartColor and TubeEndColor in the ProgressBarAdv

Samples:

C#: ProgressBarAdv_Multiple Colors_C#

VB: ProgressBarAdv_Multiple Colors_VB

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
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
Live Chat Icon