TextBox property limitations

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

Guest

How to limit a TextBox control to a specific number of characters per line
and number of lines?
please guide
 
Sachin,

This is not built into the textbox. Rather, you would have to add a
property for the maximum number of lines, as well as a property for the
maximum length of each line.

Then, you would have to override the Text and the Lines property on the
TextBox so that you can check the lengths of the lines and the number of
lines themselves.

Hope this helps.
 

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

Back
Top