ToolStripComboBox::DropDownStyle Property
Gets or sets a value specifying the style of the ToolStripComboBox.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property ComboBoxStyle DropDownStyle { ComboBoxStyle get(); void set(ComboBoxStyle value); }
Property Value
Type: System.Windows.Forms::ComboBoxStyleOne of the ComboBoxStyle values. The default is DropDown.
The DropDownStyle property controls the interface that is presented to the user. You can enter a value that allows for a simple drop-down list box, where the list always displays, a drop-down list box, where the text portion is not editable and you must select an arrow to view the drop-down, or the default drop-down list box, where the text portion is editable and the user must press the arrow key to view the list. To always display a list that the user cannot edit, use a ListBox control.
The following code example demonstrates the syntax for setting various ToolStripComboBox properties, including the DropDownStyle property.
Available since 2.0