System.Windows.Forms.ComboBox.DropDownStyle Property

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

Syntax

[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.Repaint)]
[System.ComponentModel.DefaultValue(System.Windows.Forms.ComboBoxStyle.DropDown)]
public ComboBoxStyle DropDownStyle { set; get; }

Value

Documentation for this section has not yet been entered.

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. See System.Windows.Forms.ComboBoxStyle for the available settings and their effects. There is no setting to always display the list and disallow entering a new value. To display a list to which no new values can be added, use a System.Windows.Forms.ListBox control.

Requirements

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