Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to select textbox when mousing in
Message
De
05/11/2003 15:44:03
 
 
À
05/11/2003 15:42:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00846750
Message ID:
00846772
Vues:
24
>>>>>>If you have a textbox set up to select upon entry, and then click into that textbox with your mouse, the textbox loses its highlight and the cursor positions to the column in the textbox where you clicked. Is there any way to have the textbox work the same way with a mouse click in it as it does if you tabbed into it? I want it to select the entire length of the textbox and be ready for input from the left side, replacing any data in it with what I type in.
>>>>>>
>>>>>>Jim White
>>>>>
>>>>>You can put this in the Click of the TextBox:
>>>>>
>>>>>this.SelStart = 0
>>>>>this.SelLength=LEN(ALLTRIM(this.Value))
>>>>>
>>>>
>>>>Excuse me for jumping in but if the controlsource is not a charater this will generate an error.
>>>
>>>Sure could.
>>
>>Change it to This.Text instead of This.Value and that problem goes away.
>>
>>Alan
>
>You know, between the 3 of us, we might get this nailed down. ;)

Sad, isn't it. ;)

Alan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform