Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Position to beginning of text
Message
From
01/04/2004 22:06:18
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00891630
Message ID:
00891652
Views:
19
Thanks David

Almost got there myself. Didn't think of the dodefault() - nodefault bit though.

Can you tell me what happens with the Dodefault() on the standard control?

Also
this.SelStart = 0
1 puts it at the second character.

Ta very muchly
Geoff


>Geoff,
>
>In the GotFocus()
>
>
>dodefault()
>this.SelStart = 1
>this.SelLength = 0
>nodefault
>
>
>Any tou are liable to tick off a lot of your users that are trying to click into the middle of a field to correct a single character.
>
>>How do I force the cursor (and display) to the beginning of the text in a textbox, editbox or combo when it gets focus regardless of whether it was clicked with a mouse or not or whether it is in a grid or not?
May all your weeds be wildflowers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform