This is what i have so far.
Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click
Timer2.Start()
Button7.Enabled = True
Label8.Text = "Match Begins"
End Sub
Private Sub Timer2_Tick(sender As Object, e As EventArgs) Handles Timer2.Tick
ProgressBar1.Increment(1)
If ProgressBar1.Value = 3 Then
Label8.Text = "1st Half"
End If
ProgressBar1.Increment(1)
If ProgressBar1.Value = 100 Then
Label8.Text = "Half-Time"
End If
The code is to simulate the first half of a football match which lasts 45 minutes. I click the button7 to start the progress bar, and then my label says 'Match Begins'
At value 3 (of what i would like to be 1 minute) makes the label change again to '1st Half'. When the 45 minutes is up the label changes once again to read 'Half-Time'
I have managed to do all the labels correctly, but the progress bar itself doesn't know how long to run for. I have googled but struggled to find other people looking for minutes.