Placement of Cursor

  • Thread starter Thread starter Arturo
  • Start date Start date
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.
 
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!
 
Back
Top