Function key events

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I need to run a set of update commands if the user presses the F11 key. I have tried using the VB constant vbkeyF11, in the KeyPress, KeyUp, and KeyDown events for my control with no success? Please help

Thanks
 
Which control?
Did the control have focus when the key was pressed?
Did any of the events trigger when the key was pressed?
Its probably best to do this at form level rather than at
control level. To do this, turn on the form "keypreview"
feature and put the code in the keydown or keyup event

-----Original Message-----
Hi,

I need to run a set of update commands if the user
presses the F11 key. I have tried using the VB constant
vbkeyF11, in the KeyPress, KeyUp, and KeyDown events for
my control with no success? Please help.
 

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

Back
Top