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!

textbox size limit

Status
Not open for further replies.

fishman13

Programmer
Jul 8, 2002
73
US
Is there a way to set a value for the number of characters a text box can hold. I have a text box that is not tied to any control source that needs to hold up to 50 characters. Is there any way to set this limit without using 50 "X"s for an input mask.

Thanks
 
fishman13

You could also use the INPUTMASK property of the textbox. Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Hi Fishman,

myTextBox.MaxLength = 50

Also
myTextBox.Format = !X
if you want all capital and alphanumeric. There is no need to repeat that for each and every character required.
:) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top