Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
- Label1.Text = "Enabled"
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Timer1.Enabled = Not Timer1.Enabled
- If Timer1.Enabled = False Then
- Label1.Text = "Disabled"
- End If
- End Sub
- End Class
Add Comment
Please, Sign In to add comment