Results 1 to 5 of 5

Thread: help!![resolved]

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2003
    Posts
    5

    help!![resolved]

    hey again,can anyone tell me how to get a progress bar to actually work?i have insterted it but thats about it.
    thanks.
    Last edited by greenie94; Dec 2nd, 2003 at 04:46 PM.

  2. #2
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506
    What do you want to indicate the progress of?

    If you want the progressbar for 'fun' purposes, add a timer to your form give it an interval of say 10-100 and use the following code in the timers Timer event:

    VB Code:
    1. Private Sub Timer1_Timer()
    2.   ProgressBar1.Value = ProgressBar1.Value + 1
    3.   If ProgressBar1.Value = ProgressBar1.Max Then Timer1.Enabled = False
    4. End Sub

    -adehh

  3. #3
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    progressbar1.min = <the min value>
    progressbar1.max = <the max value>
    progressbar1.value = <the amount of blue>

    if you have a loop then it would look something like this:

    Code:
    dim i as integer
    
    progressbar1.min = 1
    progressbar1.max = 100
    
    for i 1 to 100
       ...
       ...
       progressbar1.value = i
       ...
       ...
    
    next
    min and max can be anything but if the value is outside the range an error will occur

    e.g. min 10
    max 546

    if value goes below 10 or greater than 546 an error will be raised.
    Last edited by davidrobin; Dec 1st, 2003 at 06:23 PM.

  4. #4
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    I find progressbars frustrating, never work for me. I can only imitate the progress, not actually show "True" progress

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385
    greenie94

    There is some code in the CodeBank Forum. See if it helps.

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