Solved

What is F13?

Posted on 1998-06-23
4
1,048 Views
Last Modified: 2006-11-17
I wanted to know what keystrokes make the F13 key run.
0
Comment
Question by:kellyegg
4 Comments
 
LVL 9

Expert Comment

by:Dalin
ID: 1464110
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
0
 

Author Comment

by:kellyegg
ID: 1464111
This did not work.
0
 
LVL 3

Accepted Solution

by:
jjmartin earned 10 total points
ID: 1464112
F13 is shift+F1.  F14 is shift+F2.  F15 is shift+F3.  Etc... See the pattern here?
0
 
LVL 1

Expert Comment

by:stevesm
ID: 1464113
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

0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now