Category / Section
What are the progress styles available in WinForms ProgressBarAdv?
1 min read
Progress styles
The WinForms ProgressBar Adv includes the following ProgressStyles:
1)Constant
2)Gradient
3)MultipleGradient
4)Tube
5)Image
6)System
7)WaitingGradient
8)Metro
The following code example demonstrates the same.
C#
//To draw the ProgressBar with constant foreground color this.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Constant; //To draw the ProgressBar with Gradient brush this.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Gradient; //To draw the ProgressBar with multiple gradient brush this.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.MultipleGradient; //To draw the ProgressBar with vertical tube-like gradient brush this.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Tube; //To draw the ProgressBar with image this.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Image; //To draw the ProgressBar with System color this.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.System; //To draw the ProgressBar with a moving gradient line. this.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.WaitingGradient; //To draw the ProgressBar with Metro style this.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Metro;
VB
'To draw the ProgressBar with constant foreground color Me.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Constant 'To draw the ProgressBar with Gradient brush Me.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Gradient 'To draw the ProgressBar with multiple gradient brush Me.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.MultipleGradient 'To draw the ProgressBar with vertical tube-like gradient brush Me.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Tube 'To draw the ProgressBar with image Me.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Image 'To draw the ProgressBar with System color Me.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.System 'To draw the ProgressBar with a moving gradient line. Me.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.WaitingGradient 'To draw the ProgressBar with Metro style Me.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Metro
Figure 1: ProgressBar specified with Constant foreground color
Figure 2: ProgressBar specified with Gradient color
Figure 3: ProgressBar specified with multiple gradient color
Figure 4: ProgressBar specified with tube-like gradient brush
Figure 5: ProgressBar specified with Image
Figure 6: ProgressBar specified with system color
Figure 7: ProgressBar specified with waiting gradient line
Figure 8: ProgressBar specified with Metro style
Samples: