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.
 
Back
Top