now u need 3 thngs probably
1)Timer (Available in the tool box) Named as "Timer1" in code
u have to make ur Timer`s Interval To 1000 instead of 100 in the property window of timer1
2) Label (Which will show the Time) Named as "lblTimeElapsed" in the code
3) Two Member Variables
* Sec
* Min and both as double so here is wat u need to do
4) A button (Finish Button) named as btnFinish in the code.
Dim sec As Double = 0.0
Dim min As Double = 0.0
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub
Private Sub btnFinish_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFinish.Click
Timer1.Stop()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
sec = sec + (Timer1.Interval / 1000)
If sec = 60 Then
min += 1
sec = 0
End If
lblTimeElapsed.Text = min.ToString() & " : " & sec.ToString()
End Sub