>>>Can anyone tell me if there is a way to control where my mouse cursor is pointed in a text box? I have a textbox that displays a real short line of data for the user. I need the mouse cursor to move to the end of that line so that the user can enter more information if they need to.
>>>
>>>Thanks in advance.
>>
>>As long as it's character data, this code in the GotFocus of the textbox method will do it.
>>
This.SelStart = LEN(RTRIM(This.Value))
>
>And if you want to drive the user crazy, put it in the Click also. Sorry, it's Friday and I'm a little giddy
I sense an addition to the click method of my textbox base class...
If dow(date()) = 6
This.SelStart = LEN(RTRIM(This.Value))
Endif
Or for the superstitious...
If dow(date()) = 6 AND day(date()) = 13
This.SelStart = LEN(RTRIM(This.Value))
Endif
Like you said, Mark, it's Friday.
David.