Click here to Skip to main content
15,938,448 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can you tell me how to input text up to limited line?
Updated 7-Jun-11 22:47pm

I THINK you want to limit the number of characters in a textbox. The Textbox has a MaxLength property. You could find that by typing in the IDE and browsing the properties of the control.
Share this answer
How about using the textBox.MaxLength property.
For ex: textBox1.MaxLength = 14;. With this, you can only input 14 characters in to the textbox.
Hope that helps.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900