DropDownListBox, DropDownPictureListBox, EditMask, InkEdit, MultiLineEdit, SingleLineEdit controls
The Limit property controls the number of characters the user can enter in the control.
To set the maximum number of characters allowed:
Type the number of characters that the user can enter in the control in the Limit field of the General page of the control’s Properties view.
0 indicates an unlimited number of characters.
The Limit property takes an integer value.
The following example sets 256 as the maximum number of characters for the MultiLineEdit mle_1:
mle_1.Limit = 256