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
-
06-29-2011 02:48 AM #1Guest
How to make a Progress bar! [TuT]
-
06-30-2011 03:28 PM #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:
This will also prevent your form from being closed down.Code:ProgressBar1.Increment(+1) If ProgressBar1.Value = 100 Then Timer1.Stop() MessageBox.Show("Finished!") End If
-
06-30-2011 03:51 PM #3
-
07-01-2011 12:02 AM #4Minecraft Donator
Spartan Warrior
- Join Date
- Apr 2010
- Location
- Snatchin Up Your Children
- Posts
- 1,353
- Rep
- 115


Reply With Quote




Bookmarks