Hi!
Sure, it should be "GotFocus" event.
I just made mistake because read the original post mentioned "SetFocus". Thanks for correction!
>Hi Vlad,
>
>Why SetFocus instead of GotFocus?
>
>Renoir
>
>>Hi!
>>
>>In the SetFocus event use follwing commands:
>>this.SelLength=0
>>this.SelStart=len(rtrim(this.Text))
>>
>>HTH.
>>
>>>I have a textbox which has no value and I give it a value programmatically. Now when i use the method Textbox.Setfocus() the textbox gets the focus but the blinking cursor is a the begining of the text as no value is in the textbox and so when i type in something the typed in characters appear at the begining before the value it had before. I have to press END key or click with the mouse to work correctly -->(The cursor at the end). How can i solve this problem.
>>>
>>>Thanks
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.