Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Timer1.Enabled = True
- Button1.Enabled = True
- End Sub
- Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
- Timer1.Stop()
- End Sub
- Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
- Label1.Text = 0
- Label2.Text = 0
- Label3.Text = 0
- End Sub
- Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
- Label3.Text = Label3.Text + 1
- If Label3.Text = 60 Then
- Label3.Text = 0
- Label2.Text = Label2.Text + 1
- If Label2.Text = 60 Then
- Label2.Text = 0
- Label1.Text = Label1.Text + 1
- End If
- End If
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment