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

Percent Progress Bar

By iwdu150

A project and source code for a progress bar with percentage completed shown.
VB, Windows, .NET 1.1VS.NET2003, Dev
Posted:6 Jan 2006
Views:59,809
Bookmarked:13 times
Announcements
Loading...
 
Search    
Advanced Search
printPrint   Broken Article?Report       add Share
  Discuss Discuss   Recommend Article Email
12 votes for this article.
Popularity: 1.91 Rating: 1.77 out of 5
5 votes, 41.7%
1
2 votes, 16.7%
2
2 votes, 16.7%
3
2 votes, 16.7%
4
1 vote, 8.3%
5

Introduction

When I first started programming, maybe about two years ago, I was disappointed to see that library code for a simple matter of having a progress bar with the percent complete inscribed in the middle, was nowhere to be found. Maybe, I am the only one who wants to have it, but I decided to make one of my own to figure out how to do it, and just for kicks.

Background

I had no idea where to start, so I checked out MSDN, and lo and behold, they had an article on how to make a progress bar control. So I used that source to create the basic control, then spent about an hour figuring out how to calculate the percent and show it in the middle of the custom bar. Sounds easy enough, eh? It took a bit, since it was my first control, but now it works.

Using the code

This is not that hard to use at all. Add it to your toolbox (Tools-> Add/Remove Toolbox Items-> Browse-> my DLL) and plop it on your form. Acts like a normal progress bar should, it just tells you how close it is to being done. Then you just use it however you like. I got the code to separate my properties from the normal .NET properties, from: A Smooth ProgressBar for everyone! Part Duex.

Points of Interest

This is a great project to look at if you are interested in learning how to create a custom control. All the code is commented, so it should not be hard to understand :-).

History

  • v 1.0 - Beginning stuff, more to come later.

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

iwdu150


Member
I am iwdu15, a college frosh who will be majoring in Computer Science. I use VB.Net, C#, C++, J#, Java, and some C.
Location: United States United States

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 16 of 16 (Total in Forum: 16) (Refresh)FirstPrevNext
GeneralLicense for Percent Progress Bar PinmemberKarthik LFI5:02 10 Jun '09  
GeneralUseful Tipp PinmemberInCodeVB5:48 21 Apr '09  
GeneralNot the native component Pinmemberbn2vs2:57 4 Feb '09  
QuestionPercent Progress Bar Expiration Pinmemberrobertaallan10:55 24 Jul '08  
AnswerRe: Percent Progress Bar Expiration Pinmemberiwdu1513:34 24 Jul '08  
GeneralGood work! Pinmemberjomet18:53 4 Mar '08  
GeneralProgress bar does not update in the for loop PinmemberSoftwareDeveloperS11:54 29 Oct '07  
GeneralRe: Progress bar does not update in the for loop Pinmemberiwdu15010:39 30 Oct '07  
GeneralUrgent help Pinmemberjack.pro0:52 19 Jul '07  
GeneralProgress bar Pinmember23:53 20 Mar '07  
GeneralHaving problem. PinmemberVb.Sweat7:39 14 Feb '07  
GeneralRe: Having problem. Pinmemberiwdu15013:18 14 Feb '07  
Generalwhere is the project file Pinmembermaxmaster13:32 27 Sep '06  
GeneralRe: where is the project file PinmemberKelvinLam4:54 3 Dec '06  
GeneralNice Pinmember5150@abrichardson.com11:45 28 Jul '06  
GeneralRe: Nice Pinmemberiwdu15019:38 28 Jul '06  

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

PermaLink | Privacy | Terms of Use
Last Updated: 6 Jan 2006
Editor: Smitha Vijayan
Copyright 2006 by iwdu150
Everything else Copyright © CodeProject, 1999-2009
Web17 | Advertise on the Code Project