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