Hi Chris,
for F1 key tuo should issue a
set help off
just before run the form
for F10 key you can try using the "ON KEY LABEL" command. Something like:
ON KEY LABEL "F10" _vfp.ActiveForm.keypress(-9,-1)
HTH
Franco
>Hi All - I have set KeyPreview true on my form and I have this code in the KeyPress event...
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>IF INLIST(nKeyCode, 28, -1, -2, -3, -4, -5, -6, -7, -8, -9, 133, 134) THEN
>MESSAGEBOX("F KEY PRESSED")
>ENDIF
>
>
>but this does not catch F1 or F10
>
>I am aware that F1 is reserved for HELP etc and F10 seems to set focus to my menu.
>
>How do I capture F1 and F10?
>
>Thanks