Ashley,
I think you have something else in your class hierarchy or environment that is causing your problem.
I created a form from the VFP baseclass, dropped a baseclass text box on the form. set KeyPreview=.t. and had this form.KeyPress() method
LPARAMETERS nKeyCode, nShiftAltCtrl
debugout nKeyCode
Whether the Form is Modal or Modeless the function keys (except for F1 and F10) all echo valuesin the debug window.
>I'm trying to trap function keys pressed on a modal form. I have set the form's KeyPreview property to .T., which help says will have the form intercept the keystrokes before the controls do. This does not seem to work.. I am echoing the keystrokes to a wait window and it seems to trap the TAB and BACKSPACE keys only.