Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text Box Value Bug
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00475397
Message ID:
00476370
Views:
40
>Hi Barbara.
>
>>> In order to get this to work properly with a mouse click, I have the following code in the GotFocus method of my textbox class:
>
>if this.SelectOnEntry
>   Dodefault()
>endif
>
<<
>
>Which also produces some interesting behavior if you happen to have code in the Valid method of the textbox since this causes the Valid to fire when the control gets focus ;-)
>

But it's better than the alternative, which is to call SetFocus(). That, of course, causes problems if the textbox is part of a form called from a valid. Do you know of a better solution?
Previous
Reply
Map
View

Click here to load this message in the networking platform