Click here to Skip to main content
11,482,402 members (73,621 online)
Click here to Skip to main content

Advanced Progressbar

, 24 Jan 2006 103.2K 1.2K 42
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 Pin
bboy_markor24-Apr-12 15:35
memberbboy_markor24-Apr-12 15:35 
GeneralProgressbar shape trapezium Pin
NRG569-Apr-07 0:25
memberNRG569-Apr-07 0:25 
GeneralRe: Progressbar shape trapezium Pin
Gil.Schmidt10-Apr-07 12:45
memberGil.Schmidt10-Apr-07 12:45 
GeneralProblem with Whidbey: percent text is not centralized Pin
hungpvtn15-Jan-06 0:47
memberhungpvtn15-Jan-06 0:47 
GeneralRe: Problem with Whidbey: percent text is not centralized Pin
Gil_Schmidt15-Jan-06 1:11
memberGil_Schmidt15-Jan-06 1:11 
GeneralUse in VB .NET Pin
kenexcelon27-Aug-05 18:15
memberkenexcelon27-Aug-05 18:15 
GeneralRe: Use in VB .NET Pin
kenexcelon27-Aug-05 18:16
memberkenexcelon27-Aug-05 18:16 
GeneralRe: Use in VB .NET Pin
Gil_Schmidt28-Aug-05 1:50
memberGil_Schmidt28-Aug-05 1:50 
GeneralRe: Use in VB .NET Pin
kenexcelon28-Aug-05 6:18
memberkenexcelon28-Aug-05 6:18 
GeneralRe: Use in VB .NET Pin
Gil_Schmidt28-Aug-05 11:22
memberGil_Schmidt28-Aug-05 11:22 
GeneralRe: Use in VB .NET Pin
kenexcelon28-Aug-05 11:49
memberkenexcelon28-Aug-05 11:49 
GeneralRe: Use in VB .NET Pin
kenexcelon29-Aug-05 19:06
memberkenexcelon29-Aug-05 19:06 
GeneralRe: Use in VB .NET Pin
Gil_Schmidt29-Aug-05 22:46
memberGil_Schmidt29-Aug-05 22:46 
GeneralRe: Use in VB .NET Pin
kenexcelon30-Aug-05 11:48
memberkenexcelon30-Aug-05 11:48 
GeneralRe: Use in VB .NET Pin
Gil_Schmidt30-Aug-05 12:36
memberGil_Schmidt30-Aug-05 12:36 
Questionhow to use in VB.NET??? Pin
aminir25-Aug-05 21:21
memberaminir25-Aug-05 21:21 
AnswerRe: how to use in VB.NET??? Pin
Gil_Schmidt25-Aug-05 23:16
memberGil_Schmidt25-Aug-05 23:16 
GeneralRe: how to use in VB.NET??? Pin
aminir26-Aug-05 3:52
memberaminir26-Aug-05 3:52 
GeneralRe: how to use in VB.NET??? Pin
Gil_Schmidt26-Aug-05 6:58
memberGil_Schmidt26-Aug-05 6:58 
i don't know this is weird..

try recompiling the source in your VS and see what happends
GeneralRe: how to use in VB.NET??? Pin
The_Mega_ZZTer24-Jan-06 11:48
memberThe_Mega_ZZTer24-Jan-06 11:48 
Generalcannot download the source code Pin
Bnaya Eshet20-Jul-05 22:48
memberBnaya Eshet20-Jul-05 22:48 
QuestionWould you take a look? Pin
eRRaTuM30-May-05 5:25
membereRRaTuM30-May-05 5:25 
GeneralSmoothing Mode Pin
romias9-Feb-05 1:50
memberromias9-Feb-05 1:50 
GeneralRe: Smoothing Mode Pin
Gil_Schmidt9-Feb-05 3:37
memberGil_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
Web01 | 2.8.150520.1 | Last Updated 24 Jan 2006
Article Copyright 2005 by Gil.Schmidt
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid