Ok well this is just a request i got randomly but who cares.
What you will need:
1 progress bar
1 timer
2 buttons
-----------------------------------
Time to code!
-------------
Code button 2 (or the stop button) as:
--------------------------------------Code:Timer1.stop
Code the start button as:
---------------------------------------Code:Timer1.start
Then code the Timer as:
----------------------------------------Code:Progressbar1.increment(+1) If progressbar1.value=100 Then Messagebox.show ("finsished") Me.close
Results 1 to 4 of 4
- 29 Jun. 2011 02:48am #1
How to make a Progress bar! [TuT]
- 30 Jun. 2011 03:28pm #2
Good job! However your proposition will cause the messagebox to show up multiple times (each time the timer ticks before you click 'ok'), which may be noisy. Here is what I suggest:
Code:ProgressBar1.Increment(+1) If ProgressBar1.Value = 100 Then Timer1.Stop() MessageBox.Show("Finished!") End If
- 30 Jun. 2011 03:51pm #3
- 01 Jul. 2011 12:02am #4
- Join Date
- Apr. 2010
- Location
- When freedom is outlawed only outlaws will be free
- Posts
- 5,113
- Reputation
- 195
- LCash
- 1.46
Cool, but next time put the language your making the progress bar in in the title of your thread! xD Nice tutorial though