Placement of Cursor

A

Arturo

I have several fields for phone numbers. I am using
the input mask (xxx) xxx-xxx. When tabbing into
them and entering the phone number, it works the
way it is supposed to. When the users click into the
field, not so well. The problem is that they don't
always click to the left, where the first digit goes.

Is there code to have the cursor go to the left
using the "On Enter" property? Or?

Thank you.
 
S

Stockwell43

Hi,

This is some air code:

In the OnClick of the field
YourFieldName.SelStart = 0

Also, if the user click on the field name it will highlight the whole text
box so it acts like as if they tabbed into.

Hope this helps!
 

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