Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Focus to certain position in Text Box Help Please
Message
De
03/07/1999 02:35:31
 
 
À
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:
00237134
Vues:
15
>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!
Hi Doug.

Try this is the GotFocus of your Textbox:

DODEFAULT()
This.SelStart = This.SelLength
NODEFAULT

Marcia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform