Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Focus to certain position in Text Box Help Please
Message
De
02/07/1999 17:27:51
 
 
À
02/07/1999 17:10:42
Doug Hitchcock
Illinois State University
Normal, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00237059
Message ID:
00237067
Vues:
14
>Scenario:
>
>I set the value of a textbox from a different control, and then I want to set the focus to that control. When I do that I'd like for the cursor to be AFTER the value that's in there.
>
>Specifically, it's a phone number field, and I want it to automatically put in the Area code, and then set the focus to that box, placing the cursor after the area code (309| ) instead of in front.
>
>I don't know how to do this, and I tossed it around here and got no ideas. Please drop some ideas if you have any.
>
>Thanks!

Try the SelStart property followed by a SetFocus to the TextBox

Oscar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform