DropDownStyle Property
Applies To
ComboBox
Description
Gets or sets a value specifying the style of the combo box.
Usage
GGet Form.Control.DropDownStyle, var
GSet Form.Control.DropDownStyle, value
- Form
- Name of a form or string variable containing a form name.
- Control
- Name of a control or string variable containing a control name.
- var
- Integer variable that will contain the value of the property.
- value
- Integer expression for the new value of the property.
Values
0 - Simple
1 - DropDown
2 - DropDownList
Default: DropDown
Remarks
The DropDownStyle property controls the interface that is presented to the user.
- You can enter a value that provides 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.
See Also
ComboBox
Example
GSet frmMain.cmbPartNames.DropDownStyle, DROPDOWNSTYLE_SIMPLE