Link to home
Start Free TrialLog in
Avatar of bhanley9681
bhanley9681

asked on

indeterminate progress bar

Hi,

I have an operation that's being preformed but I have no idea how long it will take, so I just want a progress bar that spins back and forth.

I could obviously just have it start at 0 again once it gets full and keep going like that, but I don't want that.  The trends seems to be using a little block that goes across the bar and then starts at the beginning.

Does anyone know how to do this?

Thanks
Avatar of glsac
glsac
Flag of United States of America image

windows or asp.net?
Avatar of bhanley9681
bhanley9681

ASKER

sorry, windows
You might take a look at this code project article.  I did something similiar to this one in my application recently.

http://www.codeproject.com/cs/miscctrl/C_NeverEndingPBar.asp

Good luck,
Aaron
ASKER CERTIFIED SOLUTION
Avatar of armoghan
armoghan
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bob Learned
I like the animated GIF idea.  The copy progress in Windows Explorer is an example of this.

Bob
Yeah, very interesting.  I have to admit, the animated GIF is a great idea.  

Its not as reusable because resizing the GIF to suit your needs would take a little more effort and I don't think you'd be able to easily resize the control dynamically at runtime either.  It also wouldn't be nearly as easily to control the rate of the progress bar movement.  

However as for simplicity if you don't mind these limitations I'd probably go that route.  Nice and clean.

-Aaron