I Got StopWatch , And i want that the stopwatch start to count from 01:00:12,000
my code(not works):
Dim sp As New Stopwatch
Dim lb As New Label
Me.Controls.Add(lb)
lb.Text = ""
sp.Elapsed.Hours.Equals(1)
sp.Elapsed.Minutes.Equals(0)
sp.Elapsed.Seconds.Equals(12)
sp.Elapsed.Milliseconds.Equals(0)
sp.Start()
lb.Text = sp.Elapsed.Hours.ToString & ":" & sp.Elapsed.Minutes.ToString & ":" & sp.Elapsed.Seconds.ToString & "," & sp.Elapsed.Milliseconds.ToString
This is not possible.
There is no way to initialize the
Stopwatchclass to anything but 0.Nothing is stopping you from adding 1 hour and 12 seconds to the result though.