ListBox control
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Displays a list of values and lets you select one or more.
Remarks
If the ListBox is to a , the ListBox stores the selected value in that data source.
The ListBox can either appear as a list or as a group of OptionButton controls or CheckBox controls.
The default property for a ListBox is the Value property.
The default event for a ListBox is the Click event.
Note You can't drop text into a drop-down ListBox.
ListBox styles
You can choose between two presentation styles for a ListBox. Each style provides different ways for users to select items in the list.
If the style is Plain, each item is on a separate row; the user selects an item by highlighting one or more rows.
If the style is Option, an OptionButton or CheckBox appears at the beginning of each row. With this style, the user selects an item by clicking the option button or check box. Check boxes appear only when the MultiSelect property is True.