I need to limit the number of characters to be pasted in a multiline textbox.
Let's say this is my string to be pasted in the textbox:
Good day Ladies and Gents!
I just want to know
If this is possible, please help.
The rule is maximum characters PER LINE is 10, Maximum ROWS is 2. Applying the rule, pasted text should only be like this:
Good day L
I just wan
Best Answer
There is not automatic what to do this. You'll need to handle the
TextChanged
event on the text box and manually parse the changed text to limit it to the format required.