Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus by using Key Label
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00430406
Message ID:
00430419
Views:
9
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform