Results 1 to 3 of 3

Thread: Progress Bar

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    20

    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

  2. #2
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    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.

  3. #3
    Junior Member
    Join Date
    Nov 2004
    Location
    DC
    Posts
    16
    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
  •  



Click Here to Expand Forum to Full Width