• Log in or sign up for an account here: https://www.sythe.org/login

stopwatch / countdown timer

mama luigi

Newcomer
Joined
May 5, 2010
Sythe Gold
0
Messages
11
how would you make a stopwatch or a countdown timer, I can't seem to be able to figure out the code.

Thanks in advance.
 
Code:
Dim intCountDown As Integer = 200   'The number you want to count down from here

Private Sub tmrCountDown_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrCountDown.Tick

intCountDown = intCountDown - 1   'Minus 1 off the varable

lblCountDown.Text = intCountDown.ToString   'Display/update the variable in a label

End Sub


If you didn't understand what I said in my previous post then just copy the code I did above and just drag a label onto your form and call it 'lblCountDown'. Then drag a timer onto your form and call it 'tmrCountDown'.
 
Runescape Gamblingrunescape gambling
Back
Top