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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cursor position

Status
Not open for further replies.

Rottdpogs

IS-IT--Management
Jul 17, 2001
86
CN
Please Advice. I would like to end the cursor after the letter inputted in the textbox.
textbox settings:
inputmask: ####
maxlength: 4
problem is that when i focus on the textbox the cursor focus shows like this "999|9" how can i set it like "9999|"
thanks in advance
 
Here is the workaround
Code:
inputmask: #####

*** textbox.KeyPress event
If !inlist(nKeyCode, 9, 13, 27, 127) and (This.SelStart > 3)
   NoDefault
endif

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top