Need help formatting clock

Hi Again! i am still working on the software for scoreboards but need help formatting a timer.

There are 4 separate timers and clocks for each half (a bit odd but it does work).

I need help formatting these so when it starts it off instead of being 0:0 it needs to be 00:00.

Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles FirstHalf.Tick FirstHalf.Interval = (987) firstseconds = firstseconds + 1 If firstseconds = 60 Then firstminutes = firstminutes + 1 firstseconds = 0 End If FirstHalfClock.Text = (firstminutes & ":" & firstseconds) If firstminutes = 45 Then Form1.Button5.Enabled = False Form1.HALFSTART.Enabled = True FirstHalf.Stop() FirstHalf.Enabled = False FirstHalfClock.Text = (firstminutes & ":" & firstseconds & "+") Form1.Label1.Text = "Status : Stopped for Half-Time" Form1.Label1.ForeColor = Color.Blue End If End Sub 

Help will be appreciated

submitted by /u/TerminablePen
[link] [comments]

Leave a Reply