IIRC, it's a bug in VFP8. The KeyPress event doesn't fire for F5 if Closable Property of a Form set to .F. I'm unaware about any workarouns.
>I can't capture F5 on keypress event of a textbox, everything works fine on VFP7. This is the code:
>
>IF nKeyCode = -4
> Do something....
>
>ENDIF
--sb--