Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

phone number input mask question

Status
Not open for further replies.
Jan 14, 2002
143
US
Some of our users don't like it when they click on a field with a phone number input mask that they must make sure the cursor is at the beginning of the field or it won't enter properly. Does anybody know a way to reposition the cursor to the front of the field on clicking it?

Appreciate any suggestions.

-Blaine
 
Hi Blaine,

This should solve your problem if you place this line of code in the OnClick Event for the textbox

TxtYourTextBox.SelStart = 1

Regards,
gkprogrammer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top