mzim
Well-known member
halu i'll make a stop watch
here's the code
when i click stop the clock will stop...what i want is when i click start it will continue to where the time stop..
for example: it will stop at 2.704 and when i click start it will continue like..2.705 up...
i hope it explains well.
tanx in advance and more power...
here's the code
VB.NET:
dim startime as datetime
Private Sub timertick_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles timertick.Tick
Dim span As TimeSpan = Date.Now.Subtract(startime)
Label1.Text = span.Hours.ToString & " : " & span.Minutes.ToString & " : " & span.Seconds.ToString & " . " & span.Milliseconds
End Sub
in the button1_click
If timertick.Enabled Then
timertick.Stop()
button1.Text = "click to start"
Else
startime = Date.Now()
timertick.Start()
button1.Text = "click to stop"
End If
for example: it will stop at 2.704 and when i click start it will continue like..2.705 up...
i hope it explains well.
tanx in advance and more power...