That's actually correct behaviour - using SelLength simulates the mouse selection so using the mouse to enter the field will override this.
>It doesn't work if you have something typed in the textbox and you use your mouse. The cursor remains where you clicked.
>
>
>>I've just tested and it works. This.SelStart=0 and This.SelLength=1 will select the first character of the text.
>>
>>>Anybody in here know how to use these two properties (SelStart and SelLength) to select position 1 on a textbox?
>>>
>>>I have issue a simple THIS.SELSTART = 0 in the GOTFOCUS event of the text box but this doesn't work.
>>>
>>>Thank you in advance.