RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComboBox.MaxLength Property

Specifies the maximum number of characters the user can type into the edit portion of the combo box.

Pascal
property MaxLength: Integer;
C++
__property int MaxLength;

Use MaxLength to limit the number of characters that the user can enter into the edit portion of the combo box. A value of 0 indicates that there is no application-defined limit on the length.

Note: Setting MaxLength will not truncate the existing text, it merely prevents the user from adding more text after reaching the limit of MaxLength characters.
Note: Even when MaxLength is 0, there may be limitations imposed by the operating system on the number of characters that may be entered into an edit control.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!