This documentation is archived and is not being maintained.

ComboBox.MaxLength Property

Gets or sets the maximum number of characters allowed in the editable portion of a combo box.

[Visual Basic]
Public Property MaxLength As Integer
public int MaxLength {get; set;}
public: __property int get_MaxLength();
public: __property void set_MaxLength(int);
public function get MaxLength() : int;
public function set MaxLength(int);

Property Value

The maximum number of characters the user can enter. Values of less than zero are reset to zero.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ComboBox Class | ComboBox Members | System.Windows.Forms Namespace