Click here to Skip to main content
Click here to Skip to main content

Advanced Progressbar

, 24 Jan 2006
Rate this:
Please Sign up or sign in to vote.
An extended progress bar with support for shape based progress bars and 3D colors.

Advanced Progressbar sample

Advanced Progressbar sample

Introduction

This article explains an extended progress bar with support for shape based progress bars and 3D colors.

Background

The first version only included a basic rectangle progress bar with "3D" abilities and percent display. I decided to add a dynamic shape function so it could be used with any shape (you can add more shapes in the CreateRegion function).

Using the code

Just place it on the form and have a look at the properties:

  • FillingMethod - the direction of the gradient (right to left, left to right..).
  • GradientMethod - the way the gradient is drawn (Horizontal, Vertical, 3D).
  • Shape - the shape of the progress bar (rectangle, ellipse, rounded rectangle, triangle, magen david, snake).

Other stuff you should have a look at are: BorderSize, BorderDisplay, and PercentDisplay.

Points of Interest

Good progress bars are easy to find today, but I wrote this one because I didn't find one that I liked that supported percents display, and the rest is history.

History

The first version only included a simple rectangle progress bar and was written very specifically for rectangle. Later, I wanted to add one more style, and I decided to write it dynamically for any shape. This is an updated version fixed for .NET 2.0.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Gil.Schmidt
Team Leader
Israel Israel
No Biography provided

Comments and Discussions

 
GeneralMy vote of 1 Pinmemberbboy_markor24-Apr-12 15:35 
GeneralProgressbar shape trapezium PinmemberNRG569-Apr-07 0:25 
GeneralRe: Progressbar shape trapezium PinmemberGil.Schmidt10-Apr-07 12:45 
GeneralProblem with Whidbey: percent text is not centralized Pinmemberhungpvtn15-Jan-06 0:47 
GeneralRe: Problem with Whidbey: percent text is not centralized PinmemberGil_Schmidt15-Jan-06 1:11 
GeneralUse in VB .NET Pinmemberkenexcelon27-Aug-05 18:15 
GeneralRe: Use in VB .NET Pinmemberkenexcelon27-Aug-05 18:16 
GeneralRe: Use in VB .NET PinmemberGil_Schmidt28-Aug-05 1:50 
try adding this:
 
Me.AdvancedProgressBar1.Invalidate()
 

after you change the value
GeneralRe: Use in VB .NET Pinmemberkenexcelon28-Aug-05 6:18 
GeneralRe: Use in VB .NET PinmemberGil_Schmidt28-Aug-05 11:22 
GeneralRe: Use in VB .NET Pinmemberkenexcelon28-Aug-05 11:49 
GeneralRe: Use in VB .NET Pinmemberkenexcelon29-Aug-05 19:06 
GeneralRe: Use in VB .NET PinmemberGil_Schmidt29-Aug-05 22:46 
GeneralRe: Use in VB .NET Pinmemberkenexcelon30-Aug-05 11:48 
GeneralRe: Use in VB .NET PinmemberGil_Schmidt30-Aug-05 12:36 
Questionhow to use in VB.NET??? Pinmemberaminir25-Aug-05 21:21 
AnswerRe: how to use in VB.NET??? PinmemberGil_Schmidt25-Aug-05 23:16 
GeneralRe: how to use in VB.NET??? Pinmemberaminir26-Aug-05 3:52 
GeneralRe: how to use in VB.NET??? PinmemberGil_Schmidt26-Aug-05 6:58 
GeneralRe: how to use in VB.NET??? PinmemberThe_Mega_ZZTer24-Jan-06 11:48 
Generalcannot download the source code PinmemberBnaya Eshet20-Jul-05 22:48 
QuestionWould you take a look? PinmembereRRaTuM30-May-05 5:25 
GeneralSmoothing Mode Pinmemberromias9-Feb-05 1:50 
GeneralRe: Smoothing Mode PinmemberGil_Schmidt9-Feb-05 3:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.1411023.1 | Last Updated 24 Jan 2006
Article Copyright 2005 by Gil.Schmidt
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid