I have this in the Init of a class that I drop into a form:
SET FUNCTION F5 TO CHR(245)
Then on the keypres of the form
CASE nKeyCode = 245
do mycode
..
>It looks like Keypress event can't capture it, I put a SET STEP ON and keypress event never fires.
>
>
>
>>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