Hi Mike
I don't know if this will help, but maybe you have macros on.
Issue the statement CLEAR MACROS at the begining of your code and see if F5 starts working again.
>I have a screen that has worked fine for about 5 years on over 50 computers and now it has started to operate incorrectly.
>
>It has 2 buttons at the botton for F8 Finish and F5 Find. The user can press the button with the mouse or use the function keys. It works fine with the mouse click but not with the F5 function key.
>
>The form has KeyPress set to ON and has appropriate code in the KeyPress event to look for the F5 (NKEYCODE = -4) and F8 (NKEYCODE = -7).
>
>The F8 button operates as it should but the F5 button does not operate from the Function Key.
>
>This is happening on my lab computer and on a number of client's machines. The only change I can think of is that I have upgraded from VFP 6.0 to VFP 8.0.
>
>If any one else has come across this problem, I would be pleased to het from you.
>
>Mike Smith