Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to select textbox when mousing in
Message
From
05/11/2003 15:44:03
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00846750
Message ID:
00846772
Views:
23
>>>>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform