
Multi-Line Textbox limits
Hi Darren,
Quote:
> Is anybody able to effectively limit the number of characters per line
> and the number of lines entered into a multi-line textbox?
To limit the number of characters per line, you could set the font of the
textbox to a fixed-width font like Courier New. This way, all characters
take up the same horizontal space. Then, to limit the number of characters
per line, you would just need to experiment a little with the width of the
textbox.
To limit the number of lines, you would then set the MaxLength property of
the textbox to:
CharactersPerLine * NoOfAllowableLines
eg: If you have set the width of the textbox to accommodate 30 characters
and you want to allow only 6 lines, you would set the MaxLength property to
180.
--
Hope this helps.
Regards
ibby
Please post replies or follow-ups to the **newsgroup** so that participants
may benefit or contribute.