I accidentally thought it was the limitation of the previous Windows Control. I checked that msdn was actually restricted by C # (. NET.
"
Attribute Value
Type: System..::.Int32
The number of characters that can be entered in the text box control. The default value is 32767.
Exception
Exception |
Condition |
Argumentoutofrangeexception |
The assigned attribute value is less than zero. |
Remarks
You can use this property to limit the length of text entered in the control for values such as ZIP codes and phone numbers, it can also be used to limit the length of the text to be input in the database. You can restrict the text entered into the control to the maximum length of the corresponding fields in the database.
Note: |
InCodeYou can set the value of the text attribute to a length greaterMaxlengthThe value of the value specified by the property. This attribute only affects the text entered into the control at runtime. |
Windows NT 4.0, Windows 2000, Windows 2000 Professional, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional x64 Edition, Windows Server 2003 platform description:
For single-line text box controlsMaxlengthIf the attribute is set to 0, you can enter a maximum of 2147483646 characters or a memory-based number. For the multi-line text box control, you can enter a maximum of 4294967295 characters or a number based on available memory.
Windows Millennium Edition platform description:
For single-line text box controlsMaxlengthIf the attribute is set to 0, you can enter a maximum of 32,766 characters or a memory-based number. For the multi-line text box control, you can enter a maximum of 65,535 characters or a number based on available memory.
"