Click here to Skip to main content
11,428,497 members (63,605 online)
Click here to Skip to main content

Never-ending Progress Bar (C#)

, 1 Oct 2004 CPOL
Rate this:
Please Sign up or sign in to vote.
The VB.NET Never-ending Progressbar now in C#

Sample Image - OSProgress.png

Introduction

Sometimes you just don’t know how long something will take. Like when your wife says she’ll only be a few minutes in the grocery store…you know what I mean.

The standard ProgressBar that ships with Visual Studio is great for when you know how long something will take, or there is a way to determine just how many steps a process will have. But like the trip to the store with your wife, sometimes you just can’t know how long something’s going to take. That’s why I created this progress bar.

More Information

For more information, please see http://www.codeproject.com/vb/net/NeverEndingBar.asp for the original article and VB.NET source.

License

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

Share

About the Author

Greg Osborne

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

Comments and Discussions

 
GeneralAwesome Pin
Jboy20130-Mar-07 8:12
memberJboy20130-Mar-07 8:12 
GeneralHmmmm Pin
tayspen20-Nov-05 18:11
membertayspen20-Nov-05 18:11 
GeneralRe: Hmmmm Pin
tayspen30-Nov-05 10:18
membertayspen30-Nov-05 10:18 
GeneralGreat control, but few idea's & Issue's Pin
Priest Of Psi4-Oct-04 23:54
memberPriest Of Psi4-Oct-04 23:54 
GeneralRe: Great control, but few idea's & Issue's Pin
GregOsborne5-Oct-04 5:39
memberGregOsborne5-Oct-04 5:39 
GeneralCan you post your sample working code!Re: Great control, but few idea's & Issue's Pin
Haiyan Du2-May-08 6:00
memberHaiyan Du2-May-08 6:00 
GeneralRe: Can you post your sample working code!Re: Great control, but few idea's & Issue's Pin
Haiyan Du2-May-08 7:22
memberHaiyan Du2-May-08 7:22 
GeneralRe: Great control, but few idea's & Issue's Pin
GregOsborne5-Oct-04 5:49
memberGregOsborne5-Oct-04 5:49 
GeneralFlickering... and solution Pin
LEXXa2-Oct-04 13:45
memberLEXXa2-Oct-04 13:45 
Hi,
This one from that thingy controls everyone can code but lazy to. Smile | :) )

Thanks, as well! Great work.

As always, some notes about flickering: paste this inside InitializeComponent()

this.ResizeRedraw = true;
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);

Looks better after that.


GeneralRe: Flickering... and solution Pin
GregOsborne4-Oct-04 5:31
memberGregOsborne4-Oct-04 5:31 
GeneralRe: Flickering... and solution Pin
polyester16-Nov-04 11:49
memberpolyester16-Nov-04 11:49 
GeneralRe: Flickering... and solution Pin
GregOsborne16-Nov-04 11:55
memberGregOsborne16-Nov-04 11:55 
GeneralRe: Flickering... and solution Pin
polyester17-Nov-04 8:07
memberpolyester17-Nov-04 8:07 
GeneralGreat! but... Pin
Curtis W2-Oct-04 12:24
memberCurtis W2-Oct-04 12:24 
GeneralRe: Great! but... Pin
GregOsborne4-Oct-04 5:29
memberGregOsborne4-Oct-04 5:29 
GeneralRe: Great! but... Pin
Curtis W4-Oct-04 17:00
memberCurtis W4-Oct-04 17:00 
GeneralRe: Great! but... Pin
Anonymous4-Oct-04 17:55
sussAnonymous4-Oct-04 17:55 
GeneralRefreshing Problem + Workaround Pin
Orcrist1-Oct-04 12:25
memberOrcrist1-Oct-04 12:25 
GeneralRe: Refreshing Problem + Workaround Pin
GregOsborne1-Oct-04 12:28
memberGregOsborne1-Oct-04 12:28 

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
Web03 | 2.8.150428.2 | Last Updated 1 Oct 2004
Article Copyright 2004 by Greg Osborne
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid