Set Function Keys

K

katz

Hello All!

I'm trying to set the function keys with me.KeyPrewiew and on KeyDown.
I realized that it doesn't work all the time, because of the default
settings. for example F1 key will display Help many times, even I set it to
something else.
Is there a way to set the vbKeyF1 or the rest of the keys, and disable the
default setting?

Thanks in advance
Abe
 
A

Allen Browne

The KeyDown event of the *form* should work (with KeyPreview on.)

To suppress the normal use of the key, destroy the keystroke with:
KeyCode = 0

If you wanted something application-wide (not just for one form), you could
use an AutoKeys macro.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top