Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make textbox to be selected in a grid?
Message
From
01/06/2006 09:33:14
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01126352
Message ID:
01126442
Views:
26
This message has been marked as the solution to the initial question of the thread.
>I have a grid with a column of baseclass textbox. I would like
>to see the entry in the textbox to be selected when user clicks in
>this column. The property SelectOnEntry of the textbox is set to .T.. But no matter what I do, it does not work.
>
>Here is what I tried so far. I put the following code in the GotFocus of the textbox:
>
>
>textbox::GotFocus
>NODEFAULT
>
>
>The above code work for a textbox that is not in a grid but does
>not seem to work in a grid.
>
>Any suggestions?
>
>Thank you.

In the Click event:
this.selstart=0
this.sellength=this.maxlength
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform