Preface
TextBox component (text box component) is a commonly used and relatively easy to master component. Applications mainly use it to receive user input text information.
In Visual C#, the multiline text box also uses TextBox, except that its Multiline property is true.
Note that it still has a word limit, and the default value of the MaxLength property is 32767.
What does MaxLength mean?
It represents the number of words, not the number of bytes.
What happens if it exceeds it?
If it exceeds it, the excess will be discarded and there will be no errors.
But adding text with the program will not lose the extra part.
What should I do if I want to be unrestricted?
Change the MaxLength attribute value to 0, it is said that more than 400 million text can be stored in this way.
Summarize
The above is the entire content of this article. I hope the content of this article will be helpful to everyone's learning or using C#. If you have any questions, you can leave a message to communicate.