Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting all text in textbox
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Selecting all text in textbox
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01410308
Message ID:
01410308
Views:
113
By request, I have set up behavior in our base class textbox to select all of the text when the control is clicked. This works fine except for one scenario - an input mask where there is a character before the actual stored value.

Example: the textbox's InputMask is set to "(999)" for an area code. When clicking on the control, everything but the opening parenthesis is selected even though SelStart is set to zero. If I tab into the control, then everything is selected.

Any ideas?
Jon Rosenbaum
Devcon Drummer
Next
Reply
Map
View

Click here to load this message in the networking platform