indeterminate progress bar

Posted on 2004-10-15
Last Modified: 2008-02-01

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?

Question by:bhanley9681

Expert Comment

ID: 12323820
windows or

Author Comment

ID: 12324139
sorry, windows

Expert Comment

ID: 12324304
You might take a look at this code project article.  I did something similiar to this one in my application recently.

Good luck,
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

LVL 18

Accepted Solution

armoghan earned 400 total points
ID: 12335817
Another way is to make an animated GIF and show it on a small form.
In this way you can show any kind of progress
LVL 96

Expert Comment

by:Bob Learned
ID: 12341926
I like the animated GIF idea.  The copy progress in Windows Explorer is an example of this.


Expert Comment

ID: 12342004
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.



Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question