How to disable a timer control using the F3 key

I want to disable a Timer control using the F3 key, can anyone help?
Programmerman2000Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Erick37Connect With a Mentor Commented:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = vbKeyF3 Then Timer1.Enabled = False
End Sub
0
 
Programmerman2000Author Commented:
It's not really important but I need this quickly!
0
 
Erick37Commented:
P.S.  
Be sure to set the Form's KeyPreview property to True.
0
 
Programmerman2000Author Commented:
Thanks, Erick37. That code helped me out a lot. Plus, it taught me something new in the VB language. :)
0
All Courses

From novice to tech pro — start learning today.