Link to home
Start Free TrialLog in
Avatar of kellyegg
kellyegg

asked on

What is F13?

I wanted to know what keystrokes make the F13 key run.
Avatar of Dalin
Dalin

kelly,
try to press Alt and 1-2-3 from the right hand side number keys (don't release the alt until all 3 numbers are enterd.
In VB, the keycode is vbKeyF13.
Regards
Dalin
Avatar of kellyegg

ASKER

This did not work.
ASKER CERTIFIED SOLUTION
Avatar of jjmartin
jjmartin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
kelly,
you can only capture "F" keystrokes with the certain events are you using the correct syntax and is your control set to receive keystrokes? Key preview must be set to true on the form, for example try this.

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
'Trap the F13 key for ending the app
    If KeyCode = vbKeyF13 Then
        End
End If
End Sub