Click here to Skip to main content
6,292,811 members and growing! (11,069 online)
Email Password   helpLost your password?
Languages » C / C++ Language » General     Intermediate

Advanced Progressbar

By Gil.Schmidt

An extended progress bar with support for shape based progress bars and 3D colors.
C#, Windows, .NET 1.1, GDI+, VS.NET2003, Dev
Posted:8 Feb 2005
Updated:24 Jan 2006
Views:70,809
Bookmarked:33 times
Announcements
Loading...
 
Search    
Advanced Search
printPrint   Broken Article?Report       add Share
  Discuss Discuss   Recommend Article Email
21 votes for this article.
Popularity: 3.94 Rating: 2.98 out of 5
4 votes, 19.0%
1
3 votes, 14.3%
2
5 votes, 23.8%
3
2 votes, 9.5%
4
7 votes, 33.3%
5

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


Member
learned to prgram in VB when i was 14.
worked in a startup company at the age of 16.
did some open source coding.
learned C# at the age of 21.
did some more open source coding.
worked as a freelancer programmer for 2 years.
currently working as a team leader in Freedom-UAV.
Occupation: Team Leader
Company: Freedom-UAV
Location: Israel Israel

Other popular C / C++ Language articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 23 of 23 (Total in Forum: 23) (Refresh)FirstPrevNext
GeneralProgressbar shape trapezium PinmemberNRG560:25 9 Apr '07  
GeneralRe: Progressbar shape trapezium PinmemberGil.Schmidt12:45 10 Apr '07  
GeneralProblem with Whidbey: percent text is not centralized Pinmemberhungpvtn0:47 15 Jan '06  
GeneralRe: Problem with Whidbey: percent text is not centralized PinmemberGil_Schmidt1:11 15 Jan '06  
GeneralUse in VB .NET Pinmemberkenexcelon18:15 27 Aug '05  
GeneralRe: Use in VB .NET Pinmemberkenexcelon18:16 27 Aug '05  
GeneralRe: Use in VB .NET PinmemberGil_Schmidt1:50 28 Aug '05  
GeneralRe: Use in VB .NET Pinmemberkenexcelon6:18 28 Aug '05  
GeneralRe: Use in VB .NET PinmemberGil_Schmidt11:22 28 Aug '05  
GeneralRe: Use in VB .NET Pinmemberkenexcelon11:49 28 Aug '05  
GeneralRe: Use in VB .NET Pinmemberkenexcelon19:06 29 Aug '05  
GeneralRe: Use in VB .NET PinmemberGil_Schmidt22:46 29 Aug '05  
GeneralRe: Use in VB .NET Pinmemberkenexcelon11:48 30 Aug '05  
GeneralRe: Use in VB .NET PinmemberGil_Schmidt12:36 30 Aug '05  
Generalhow to use in VB.NET??? Pinmemberaminir21:21 25 Aug '05  
GeneralRe: how to use in VB.NET??? PinmemberGil_Schmidt23:16 25 Aug '05  
GeneralRe: how to use in VB.NET??? Pinmemberaminir3:52 26 Aug '05  
GeneralRe: how to use in VB.NET??? PinmemberGil_Schmidt6:58 26 Aug '05  
GeneralRe: how to use in VB.NET??? PinmemberThe_Mega_ZZTer11:48 24 Jan '06  
Generalcannot download the source code PinmemberBnaya Eshet22:48 20 Jul '05  
GeneralWould you take a look? PinmembereRRaTuM5:25 30 May '05  
GeneralSmoothing Mode Pinmemberromias1:50 9 Feb '05  
GeneralRe: Smoothing Mode PinmemberGil_Schmidt3:37 9 Feb '05  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 24 Jan 2006
Editor: Smitha Vijayan
Copyright 2005 by Gil.Schmidt
Everything else Copyright © CodeProject, 1999-2009
Web10 | Advertise on the Code Project