MaxLength property


Available for Edit and RichEdit objects.

Read/Write at design time
Read/Write at run time

Specifies the maximum number of characters that can be typed in an Edit object. When this property is 0 (default), the limit is that specified for an edit control according to the following values:

Windows 95/98/ME      32766 characters for a single edit control and 65535 for a multiline edit control.
Windows NT/2000/XP  2147483646 characters for a single edit control and 4294967295 for a multiline edit control.