Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox and selected text during MouseOver?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00273151
Message ID:
00273246
Views:
20
>Does someone have an example of how to select text in a textbox when the mouse is moved over the top of the textbox as in a MouseOver event?
>
>I want to highlight the text in the textbox whenever I do a MouseOver the textbox, but I don't want to edit the text because it is read only.
>
>When I tab through the textboxes it highlights the text in the textbox, so I want MouseOver to do the same thing.
>
>I appreciate the help. Thanks.

In the textboxes's MouseMove method:

This.SelStart = 0
This.SelLength = LEN(this.Value)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform