_c# tutorial on the word limit of C # textbox multi-line text box

Source: Internet
Author: User

Objective

The TextBox component (text box component) is a commonly used and easily mastered component. The application uses it primarily to receive user input text information.

In Visual C #, a multiline text box uses a 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 bytes.

More than what?

More than: input, paste will lose the spare parts, also will not complain.

But adding text with a program doesn't throw away the extra parts.

What if you want to be unrestricted?

Change the MaxLength property value to 0, which is said to save more than 400 million words.

Summarize

The above is the entire content of this article, I hope the content of this article for everyone to learn or use C # can help, if you have questions you can message exchange.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.