|
-
Nov 2nd, 2004, 11:27 AM
#1
Thread Starter
Junior Member
Progress Bar
Hello
I have writen an application that displays to me all the files and sub-directories in a specified directory. Now this can take some time. So I wish to display a progress bar. Now the way I understand the progress bar works you need to set the Minimum and Maximum properties.
The problem which I am having is I do not no how many files I am going to find so do not no how to set the Maximum property.
Does anybody have any ideas please.
Thanks
Daniel
-
Nov 2nd, 2004, 11:40 AM
#2
Frenzied Member
Some times it's impossible to know how long something will take, but you just want to give some visual indication that something is still happening. One easy way is to increment your progress bar, then set it to zero when it reached 100%. That way it just keeps progressing over and over.
-
Nov 2nd, 2004, 11:57 AM
#3
Junior Member
Very few progress bas know exactly how many items or how long they will take. Start the code with a geuss on the lenght of the task then from there keep track and use code to alter the properties while it is working. by updating the bar every so often and telling the length to increase or even decrease based on the task length you will have and imperfect progress bar but one that should be as close as you can get.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|