Solved

indeterminate progress bar

Posted on 2004-10-15
6
426 Views
Last Modified: 2008-02-01
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
0
Comment
Question by:bhanley9681
6 Comments
 
LVL 9

Expert Comment

by:glsac
ID: 12323820
windows or asp.net?
0
 

Author Comment

by:bhanley9681
ID: 12324139
sorry, windows
0
 
LVL 8

Expert Comment

by:AaronReams
ID: 12324304
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
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 18

Accepted Solution

by:
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
0
 
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.

Bob
0
 
LVL 8

Expert Comment

by:AaronReams
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.

-Aaron

0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

785 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