Function
Specifies the maximum number of characters that can be entered.
Variable type
[ C#: int ] [ VB.NET: Integer ]
Initial value
32767
Setting value
0 <= MaxLength <= 32767
Remarks
Specifies the maximum number of characters
that can be entered.
The behavior when inputting data outside the range depends on the settings
such as DataErrorMode, DataCheckTiming.