Plinio,
Someone else asked this the other day on the ng. It worked fine for me if I put NODEFAULT in the method.
>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