Solved

What is F13?

Posted on 1998-06-23
4
1,053 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help in WHSCRIPT 9 47
Paint/Redraw window while dragging 16 68
MS Access - Capture pressed key onclick 4 28
Visual Studio 2005 text editor 10 35
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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

911 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

22 Experts available now in Live!

Get 1:1 Help Now