|
-
Oct 22nd, 2000, 09:25 AM
#1
Thread Starter
Member
Can someone please post simple-sample(!) lines of code to make a progress bar work. I.e. fill up to 100% in a few seconds.
Thanks alot,
moonfruit 
-
Oct 22nd, 2000, 09:29 AM
#2
PowerPoster
Code:
For a = 0 to 100
ProgressBar1.Value = A
DoEvents
Next
-
Oct 22nd, 2000, 11:07 AM
#3
Frenzied Member
Don't forget to set the
ProgressBar1.Max = 100
first
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Oct 22nd, 2000, 01:51 PM
#4
PowerPoster
Its 100 by default
-
Oct 22nd, 2000, 05:25 PM
#5
PowerPoster
You can also do this with a timer.
Private Sub Timer1_Timer()
ProgressBar1.Value = ProgressBar1.Value + 1 'increases the value by one every time
If ProgressBar1.Value >= 100 Then ProgressBar1.Value = 0 'sets the value to 0 when it gets to 100 or else it throws errors
End Sub
[Edited by MidgetsBro on 10-22-2000 at 06:27 PM]
-
Oct 22nd, 2000, 05:37 PM
#6
Like Fox's example, you would usually use a ProgressBar in a Loop rather than a Timer (ie: opening a file)
-
Oct 22nd, 2000, 06:53 PM
#7
Use it in a loop rather than a Timer. Works much faster and is less complicated .
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
|