Hi everybody,
I have a form, where I want to perform certain actions by pressing F5 or F9. I set KeyPreview to .t. and I put this code in KeyPress:
LPARAMETERS nKeyCode, nShiftAltCtrl
do case
case m.nKeyCode = - 4
set step on
thisform.FFive()
nodefault
case m.nKeyCode = - 8
thisform.FNine()
nodefault
endcase
However, pressing F5 executes my macro, defined in Tools\Macros instead...
How can I make my form to recognize these keys?
Thanks a lot in advance.
If it's not broken, fix it until it is.
My Blog