Returns and sets the style of the object.
Object.Style [ = enStyle ]
The Style property syntax has the following parts:
Name |
Type |
Description |
Object |
AComboBox |
AComboBox control |
enStyle |
enumAComboBoxStyle |
An integer specifying the style of the control. |
enumAComboBoxStyle can be one of the following:
Name |
Value |
Description |
acbSimple |
0* |
Creates a simple combo box that combines an edit-box control which takes user input with a list control. The list is displayed at all times and the current selection in the list is displayed in the edit-box control. |
acbDropDown |
1 |
Creates a drop-down combo box. This type is the same as a simple combo box, except the list is not displayed unless the user clicks a drop-down arrow at the right of the edit-box control portion of the combo box. |
acbDropDownList |
2 |
This type is the similar to the drop-down style, but the edit-box control is replaced by a static-text item which does not take user input that displays the current selection in the list. |
This property can be set at design time as well as at run time.
The following statement returns the Style of the AComboBox:
lcb1Style = cb1.Style
The following statement sets the Style of the AComboBox:
cb1.Style = acbDropDown