Click here to Skip to main content
Licence 
First Posted 8 Feb 2005
Views 92,031
Bookmarked 38 times

Advanced Progressbar

By | 24 Jan 2006 | Article
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

About the Author

Gil.Schmidt

Team Leader
EZFace
Israel Israel

Member

Web Team Leader

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 1 Pinmemberbboy_markor14:35 24 Apr '12  
GeneralProgressbar shape trapezium PinmemberNRG5623:25 8 Apr '07  
GeneralRe: Progressbar shape trapezium PinmemberGil.Schmidt11:45 10 Apr '07  
GeneralProblem with Whidbey: percent text is not centralized Pinmemberhungpvtn23:47 14 Jan '06  
GeneralRe: Problem with Whidbey: percent text is not centralized PinmemberGil_Schmidt0:11 15 Jan '06  
GeneralUse in VB .NET Pinmemberkenexcelon17:15 27 Aug '05  
GeneralRe: Use in VB .NET Pinmemberkenexcelon17:16 27 Aug '05  
GeneralRe: Use in VB .NET PinmemberGil_Schmidt0:50 28 Aug '05  
GeneralRe: Use in VB .NET Pinmemberkenexcelon5:18 28 Aug '05  
GeneralRe: Use in VB .NET PinmemberGil_Schmidt10:22 28 Aug '05  
GeneralRe: Use in VB .NET Pinmemberkenexcelon10:49 28 Aug '05  
GeneralRe: Use in VB .NET Pinmemberkenexcelon18:06 29 Aug '05  
GeneralRe: Use in VB .NET PinmemberGil_Schmidt21:46 29 Aug '05  
GeneralRe: Use in VB .NET Pinmemberkenexcelon10:48 30 Aug '05  
GeneralRe: Use in VB .NET PinmemberGil_Schmidt11:36 30 Aug '05  
Questionhow to use in VB.NET??? Pinmemberaminir20:21 25 Aug '05  
AnswerRe: how to use in VB.NET??? PinmemberGil_Schmidt22:16 25 Aug '05  
GeneralRe: how to use in VB.NET??? Pinmemberaminir2:52 26 Aug '05  
hi
when customizae toolbox this error appear ????
http://aminir.topcities.com/error.gif
help me
thanks
bye

GeneralRe: how to use in VB.NET??? PinmemberGil_Schmidt5:58 26 Aug '05  
GeneralRe: how to use in VB.NET??? PinmemberThe_Mega_ZZTer10:48 24 Jan '06  
Generalcannot download the source code PinmemberBnaya Eshet21:48 20 Jul '05  
QuestionWould you take a look? PinmembereRRaTuM4:25 30 May '05  
GeneralSmoothing Mode Pinmemberromias0:50 9 Feb '05  
GeneralRe: Smoothing Mode PinmemberGil_Schmidt2:37 9 Feb '05  

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.

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