Set Function Keys

  • Thread starter Thread starter katz
  • Start date Start date
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
 
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.
 
Back
Top