Input mask question

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

Guest

Is there a way to have the cursor automatically to the left regardless of
where in the box you click?
Example:
If using the format ##/##/## and you click in the year area, the cursor
stays there. I would like to have it automatically go to the left (beginning).

Thank you in advance.
 
Hi Gordy,

You could put this in the control's Enter event procedure:

With Me.ActiveControl
.SelStart = 0
.SelLength = 0
End With
 

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

Similar Threads

Oversensitive touchpad on modern laptops 0
Date Input Mask Questions 1
Input Mask 1
Placement of Cursor 3
Input Mask 1
input masks 10
Input Mask Default Value 3
Remove input mask format 4

Back
Top