Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setfocus on textBox
Message
De
21/12/2018 15:07:56
 
 
À
21/12/2018 13:19:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01664774
Message ID:
01664798
Vues:
66
>>>Hi,
>>>I would like my users to set the focus on a textbox with KeyStrokes,
>>>Since a txtbox does not have a caption where I can set the \< I have set the Caption of Label to
>>>
This\<Textbox
>>>and since label has no GotFocus
>>>I set the the ThisForm.textbox1.setFocus in KeyPress method when nKeyCode, nShiftAltCtrl parameters are according to Alt+T values. Form has KeuyPreview=.t.
>>>However it does not work, no setfocus in textbox,
>>>Anybody around with a better idea?
>>>regards,
>>>Koen
>>
>>I know this is not the "correct" way to do it, but this is the solution I have used for ages. Add a label with the caption you want, including \<. Let this label have the tabstop "before", meaning one less than, the textbox you want to set focus to.
>
>In my view, that's exactly the right way to do this. It's designed to work that way.
>
>Tamar

Thank you, good to know.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform