I see this as well.
As Sergey, pointed out, it happens if Form.Closable = .F.
I passed it up the line on your behalf.
>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
Jim Saunders
Microsoft
This posting is provided “AS IS”, with no warranties, and confers no rights.