Click here to Skip to main content
Licence CPOL
First Posted 12 Feb 2007
Views 22,979
Downloads 377
Bookmarked 37 times

A progress bar for everyone

By | 12 Feb 2007 | Article
Another progress bar, but this one has differnt types, and allows text.

Sample image

Introduction

Why do we need another progress bar? We don't, but as long as there are different ways to do things, someone will think they can do it better.

The Code

The code is severely simple. All it does when you select a BarType, is use GDI+ drawing methods to create the progress bar. This makes it very easy to add other styles. If the WindowsStandard style is selected, it is drawn using the XPThemes DLL created by Dan Kackman (thanks).

The difference between this progress bar and others I've seen is that it has support for text, count, and percentages displayed on the bar itself. You can use the replicable item {0} for the count and/or the percentage so it will be placed where you want.

Hope it's useful. Happy progressing!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Greg Osborne

Web Developer
American Equity Insurance
United States United States

Member

Visual Basic Developer since version 1.0
Java web developer
Currently developing in vb and c#

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 PinmvpDave Kreskowiak6:33 13 Oct '09  
GeneralCool PinmemberParty Yoshi16:24 29 Jun '07  

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
Web04 | 2.5.120517.1 | Last Updated 12 Feb 2007
Article Copyright 2007 by Greg Osborne
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid