Guest User

Untitled

a guest
Jan 23rd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.  
  3.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  4.         Label1.Text = "Enabled"
  5.     End Sub
  6.  
  7.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  8.         Timer1.Enabled = Not Timer1.Enabled
  9.         If Timer1.Enabled = False Then
  10.             Label1.Text = "Disabled"
  11.         End If
  12.     End Sub
  13. End Class
Add Comment
Please, Sign In to add comment