How about this?
On Key Label f2 Do something
On Key Label f3 Do something else
>Dear all,
>I have a form with some vfp standard TextBox and some Microsoft Form 2.0 TextBox on it.
>I set KeyPreview to .T. and in KeyPress event of my form :
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>IF nkeycode = 27
> thisform.Release
>ENDIF
>
>In vfp standard textbox, if i press ESC key, Keypress event run correctly, but in Microsoft Form 2.0 TextBox with below code:
>*** ActiveX Control Event ***
>LPARAMETERS keyascii
>thisform.keypress(keyascii)
>
>it occurs an error.
>when i check keyascii value, it is not numeric. it is an object.
>how i can solve this problem?
>thanks
I ain't skeert of nuttin eh?
Yikes! What was that?