Try putting this in the keypress event of the form
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode =29 && Ctrl-Home
=ThisForm.myTextBox.setfocus()
ENDIF
And setting Thisform.KeyPreview to .T.
JR
>How can I set focus to mytextbox on form with ON KEY LABEL ?
>In myForm.Activate() I used code:
>"ON KEY LABEL CTRL+HOME ThisForm.myTextBox.setfocus()" .
>It does not work since reference ThisForm. can be used in form's methods only.
>
>Might be I can do it through _SCREEN.forms.....
>However, may be there is a simple way to do it ?
>TIA
>
>Ed
CLARC Services, Inc.
3500 Tamiami Trail
Port Charlotte, FL 33952
www.clarc.com(941) 743-0108
(800) 246-5488