System.Windows.Forms.ComboBoxStyle Enumeration

Specifies the System.Windows.Forms.ComboBox style.

Syntax

public enum ComboBoxStyle

Remarks

The ComboBox.DropDownStyle property specifies whether the list is always displayed or whether the list is displayed in a drop-down. The ComboBox.DropDownStyle property also specifies whether the text portion can be edited.

Members

Member NameDescription
DropDown

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. When using this setting, the AutoCompleteMode.Append value of ComboBox.AutoCompleteMode works the same as the AutoCompleteMode.SuggestAppend value. This is the default style.

DropDownList

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. The list displays only if ComboBox.AutoCompleteMode is AutoCompleteMode.Suggest or AutoCompleteMode.SuggestAppend.

Simple

Specifies that the list is always visible 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.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0