skaryChinezeGuie
Well-known member
- Joined
- Apr 23, 2006
- Messages
- 94
- Programming Experience
- Beginner
I started a timer at the form load event using
Public DiffZeit AsDate
Public Timer1 As Timer
(in the public variable module)
Timer1.Enabled = True
DiffZeit = DateTime.Now
( in the main form load event )
PrivateSub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
TSpan = DateTime.Now.Subtract(DiffZeit)
LblTime.Text = TSpan.Minutes & ":" & TSpan.Seconds
EndSub
but it still starts at 1 second and goes up. i need it to start at 30 min. and go backwards and stop at zero. Also, I would like to close the main form when it stops and open the " Results " form. Any help would be much appreciated.
Public DiffZeit AsDate
Public Timer1 As Timer
(in the public variable module)
Timer1.Enabled = True
DiffZeit = DateTime.Now
( in the main form load event )
PrivateSub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
TSpan = DateTime.Now.Subtract(DiffZeit)
LblTime.Text = TSpan.Minutes & ":" & TSpan.Seconds
EndSub
but it still starts at 1 second and goes up. i need it to start at 30 min. and go backwards and stop at zero. Also, I would like to close the main form when it stops and open the " Results " form. Any help would be much appreciated.
Last edited: