Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select on entry - textbox
Message
From
11/12/2007 08:46:35
 
 
To
10/12/2007 23:57:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01274694
Message ID:
01274751
Views:
35
>I cannot get the numeric values in a textbox in a grid to select on entry if instead of tabbing to the textbox, the user uses the mouse. I am sure I have seen the answer to this before, but can't come up with it. Of cource I have selectonentry set to .t.
>
>Thanks in advance to the worlds fastest problem solving community
>
>Fred

This works for me, got it from somewhere:

* Textbox GotFocus
If This.SelectOnEntry
Nodefault
TextBox::GotFocus()
Endif


It has the advantage that on first click, it selects all the text, on the second click, it places the cursor where the user clicked.

Carlos
Previous
Reply
Map
View

Click here to load this message in the networking platform