I moved the code to mouseup() and it seems to work now.
>Hi All
>
>Is there a way to have a textbox control select all the text and force the cursor position 1 when the user clicks on the text box. Similar to when the user presses tab to go to move to the next control. I have SelectOnEntry = .t. and I tried this in the gotfocus() and it didn't seem to help.
>
>this.SelStart=1
>this.SelLength = LEN(this.Text)
>
>
>Thanks.