Private Sub Form1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyCode = Keys.F1 Then
timer1.Enabled = Not (timer1.Enabled)
End If
End Sub
If e.KeyCode = Keys.F1 Then
timer1.Enabled = Not (timer1.Enabled)
End If
End Sub