M
Marco
How can I put the mouse coursor at the left side of a text box when I click
on the text box?
Thanks,
Marco
on the text box?
Thanks,
Marco
Marco said:How can I put the mouse coursor at the left side of a text box when I
click
on the text box?
From:
http://www.eggheadcafe.com/software/aspnet/31815637/set-the-cursor-position.aspx
"
Set the cursor position - fredg
11-Mar-08 05:49:54
If the user clicks into the field, the cursor position will be where
ever the user has clicked.
If the user tab's into the field, you can position the cursor at the
beginning.
Code the control's Enter event:
Me.[ControlName].SelStart = 1
Or ...
to position it at the end of the existing data, you can use:
Me.[ControlName].SelStart = Len(Me.[ControlName])
--
Fred
"
How can I put the mouse coursor at the left side of a text box when I click
on the text box?
Thanks,
Marco
BruceM said:You may want to check for Null or zero-length first, so that a user can
click to edit.