|
-
Dec 1st, 2003, 05:00 PM
#1
Thread Starter
New Member
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.
-
Dec 1st, 2003, 05:11 PM
#2
Hyperactive Member
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:
Private Sub Timer1_Timer()
ProgressBar1.Value = ProgressBar1.Value + 1
If ProgressBar1.Value = ProgressBar1.Max Then Timer1.Enabled = False
End Sub
-adehh
-
Dec 1st, 2003, 05:17 PM
#3
Fanatic Member
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.
-
Dec 1st, 2003, 05:53 PM
#4
Supreme User
I find progressbars frustrating, never work for me. I can only imitate the progress, not actually show "True" progress
-
Dec 1st, 2003, 06:21 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|