Public Class Form1
Protected Overrides Function ProcessDialogKey(ByVal keyData As System.Windows.Forms.Keys) As Boolean
Select Case (keyData)
Case Keys.F10
'Replace F10 with the hotkey you want.
'Code here.
Case Keys.F11
'Replace F11 with the hotkey you want.
'Code here.
End Select
Return MyBase.ProcessDialogKey(keyData)
End Function
Public Class Form1
Protected Overrides Function ProcessDialogKey(ByVal keyData As System.Windows.Forms.Keys) As Boolean
Select Case (keyData)
Case Keys.F10
Timer1.Start()
Case Keys.F11
'When I tested this, the Timer1.Stop didnt work. But you can still try.
Timer1.Stop()
End Select
Return MyBase.ProcessDialogKey(keyData)
End Function