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:20:24
 
 
To
05/11/2003 15:14:34
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00846750
Message ID:
00846757
Views:
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

In the gotfocus of the textbox put
DODEFAULT()
THIS.SelStart  = 0
THIS.SelLength = 100
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Reply
Map
View

Click here to load this message in the networking platform