Left Justify Cursor In Textbox

S

ScottS

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.
 
K

Kevin McCartney

Hi Scott

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

regards
KM
 
S

ScottS

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top