Basically what I want is to have the timer be reset back to 3 sec once the Reset button is clicked. Preferably, I want the code to be in the same sub as the timer, though any better ideas are most welcomed. I've already put in comments where i want the code to be... thanks in advance for your help :)
Here's the part of the code...
Private Sub Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer.Tick
Static CountDown As New TimeSpan(0, 1, 0)
Dim Time0 As New TimeSpan(0, 0, 0)
CountDown = CountDown.Subtract(New TimeSpan(0, 0, 1))
If CountDown.Equals(Time0) Then
Timer.Stop()
CountDown = New TimeSpan(0, 3, 0)
End If
lblTimer.Text = CountDown.ToString
If CountDown <= New TimeSpan(0, 0, 30) Then
If lblTimer.ForeColor = Color.White Then
lblTimer.ForeColor = Color.Red
Else
lblTimer.ForeColor = Color.White
End If
End If
'check if btnReset is clicked
End Sub