DropDownStyle Property

Gets or sets a value specifying the style of the combo box.

Syntax

Public Property DropDownStyle As DropDownStyle

Applies To

ComboBox Object

Data Type

Enumerated

The following settings are available:

Constant Value Description
DropDown 0(Default) Specifies that the list is displayed by clicking the down arrow and that the text portion is editable. This means that the user can enter a new value and is not limited to selecting an existing value in the list.
DropDownList 1 Specifies that the list is displayed by clicking the down arrow and that the text portion is not editable. This means that the user cannot enter a new value. Only values already in the list can be selected.