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

Percent Progress Bar

, 6 Jan 2006
Rate this:
Please Sign up or sign in to vote.
A project and source code for a progress bar with percentage completed shown.

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 Smile | :) .

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

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

Comments and Discussions

 
GeneralLicense for Percent Progress Bar PinmemberKarthik LFI10-Jun-09 4:02 
GeneralUseful Tipp PinmemberInCodeVB21-Apr-09 4:48 
GeneralNot the native component Pinmemberbn2vs4-Feb-09 1:57 
QuestionPercent Progress Bar Expiration Pinmemberrobertaallan24-Jul-08 9:55 
AnswerRe: Percent Progress Bar Expiration Pinmemberiwdu1524-Jul-08 12:34 
GeneralGood work! Pinmemberjomet4-Mar-08 17:53 
GeneralProgress bar does not update in the for loop PinmemberSoftwareDeveloperS29-Oct-07 10:54 
GeneralRe: Progress bar does not update in the for loop Pinmemberiwdu15030-Oct-07 9:39 
GeneralUrgent help Pinmemberjack.pro18-Jul-07 23:52 
GeneralProgress bar PinmemberMember #394446020-Mar-07 22:53 
GeneralHaving problem. PinmemberVb.Sweat14-Feb-07 6:39 
GeneralRe: Having problem. Pinmemberiwdu15014-Feb-07 12:18 
Generalwhere is the project file Pinmembermaxmaster27-Sep-06 12:32 
GeneralRe: where is the project file PinmemberKelvinLam3-Dec-06 3:54 
GeneralNice Pinmember5150@abrichardson.com28-Jul-06 10:45 
GeneralRe: Nice Pinmemberiwdu15028-Jul-06 18:38 

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 | Mobile
Web03 | 2.8.140721.1 | Last Updated 6 Jan 2006
Article Copyright 2006 by iwdu150
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid