Left Justify Cursor In Textbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I know I've seen a solution for this before but I'm having trouble finding
it again ...

I have a data entry form with input masks on several textboxes. I have the
tab order set up so users can tab through the textboxes. If they use the tab
key to move through the form the cursor will automatically left justify.

Some users insist on using their mouse instead which results in the curson
appearing where ever they clicked in the text box.

Question: Is there a way to force the cursor to the left when a user
selects it?

Thanks in advance for your help.
 
Hi Scott

me.txtBOXNAME.SelStart should do the trick and place it within the
txtBOXNAME.GotFocus() event.

regards
KM
 
Thanks for you help with this.
--
Scott S


Kevin McCartney said:
Hi Scott

me.txtBOXNAME.SelStart should do the trick and place it within the
txtBOXNAME.GotFocus() event.

regards
KM
 
Back
Top