I have a problem with textbox when it typed a huge line.
In my case, the text box is used to write email addresses, and it has no character limit. So, I did this test: I wrote 200 email addresses in a notebook, and I pasted the text into the textbox and the text disappeared, but if I focus the focus of the control, the text will be displayed again. I already saw this link, but it didn’t help me. I already tried to change the MaxLength property to 0 ( as Microsoft recommends doing ), but it does not work either.
Given an email address with 50 characters, the MaxLength property will not be a problem, because 200 email addresses multiplied by 50 characters (each email address), I will have 10,000 characters, and the default value of TextBox.MaxLength is 32767.
And, before you request the code, I only set the text to a string.
myEmailObject.Address = txtEmail.Text;
Should I use RichText , or what?
source share