Create a list box
- In design mode, drag the ListBox
control from the Control Toolbox
to the form
.
- Right-click the list box, and then click Advanced Properties on the shortcut menu.
- To create a standard list box, set the ListStyle
property to Plain. To set the property, click the property and enter a value in the Apply box.
To create a list box with option buttons or check boxes, set the ListStyle property to Option.
- Fill the list at design time or run time.
How?
Note When the ListStyle property is set to Option, the MultiSelect property determines whether check boxes or option buttons appear in the list. When MultiSelect is set to Single, option buttons appear in the list. When MultiSelect is set to Multi or Extended, check boxes appear in the list.