ComboBox Control
Creates a combo box.
ComboBox
Remarks
When selected, the ComboBox control opens, displaying a list of items from which you can choose one. A ComboBox control combines the features of a TextBox control and a ListBox control. You can enter information in the text box portion or select an item from the list box portion of the control.
You can disable an item in a combobox by prefacing the expression with a single backslash ("\"). Because of this functionality, backslashes are treated differently for this control. For each backslash you need to display in text, you must provide two. For example, the following code contains a combobox item containing a UNC path.
MyForm.List1.AddItem("\\\\MyServer\\MyMachine\\MyFolder")
&& displays in the combobox as \\MyServer\MyMachine\MyFolder
The Style property determines the ComboBox control type. If the Style property is set to 0, a drop-down ComboBox control is created. If the Style property is set to 2, a drop-down list box is created.
You can also use an ActiveX control that adds extra characteristics, such as a checkbox to the listview or treeview controls.
For additional information about ComboBox controls, see Form Designer and Using Controls.
See Also
ComboBox Control Properties, Methods and Events | CREATE CLASS | CREATE FORM | DEFINE CLASS