August 2003
Beginner
600 pages
12h 55m
English
List boxes are great, but they have two shortcomings. First, they take up quite a bit of space. Second, users can't enter their own values; they have to select from the items in the list. If you need to conserve space or if you want to allow a user to enter a value that may not exist in the list, use the Combo Box control.
Combo boxes have an Items collection that behaves exactly like that of the List Box control (refer to the preceding section for information on manipulating lists). Here I will show you the basics of how a combo box works.
Add a new combo box to the form by double-clicking the ComboBox item in the toolbox. Set the combo box's properties as follows:
| Property | Value |
|---|---|
| Name | cboColors |
| Location ... |
Read now
Unlock full access