sisquo76
Active member
I have question regarding Stopwatch Class. Is there an easy way to display more than 59 minutes on stopwatch? Here is my code:
This way minutes go till 59, and then it is 0 again.
Thanks,
Sisquo76
VB.NET:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim strMinutes As String
Dim strSeconds As String
strMinutes = stopWatch.Elapsed.Minutes.ToString("##0")
strSeconds = stopWatch.Elapsed.Seconds.ToString("00")
Me.Label1.Text = strMinutes & "'" & strSeconds & "''"
End Sub
This way minutes go till 59, and then it is 0 again.
Thanks,
Sisquo76