You can make it a little less painfull by assigning ON KEY LABEL in your texbox GotFocus for development only and check for that value in keypress.
IF _VFP.StartMode = 0
ON KEY LABEL f2 KEYBOARD CHR(255)
ENDIF
>Damn, you're fast. :)
>
>Yes, VFP 7. Ok, that's hokey... What the heck would I do with a bookmark in a keypress event?
>
>Anyway, I'll give this a try with the exe and see if it works there. Gonna make it a pain to test, though, if I have to recompile the exe every time I make a change. :(
>
>Thanks,
>
>Michelle
>
>>You're running VFP7. I assume. IIRC, it works in runtime but not in development (reserved for bookmarks).
--sb--