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.
 

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

Using the KeyDown event 2
"Enter key" default 3
Snaking Columns Report 1
Sendkeys Statement 2
Event 5
Using Numbers and decimals 7
On Enter Event 1
Memo DataType 3

Back
Top