Example
In this section, we will develop a small program
that uses both the list box and the combo box controls.
Create a new application and place one command button,
one combo box control, one label control, and one
list box control. Your application should look like
the one shown in the following figure:
Figure 12.3
The source code needed for this example is stored
in the
"Source Code\Chapter12" directory. To open
the project double click the "Players.vbp"
file.
Control |
Property |
Value |
Form |
Name |
frmPlayers |
Form |
Caption |
Players |
Label |
Caption |
Select Your Favourite
Cricket Player |
Combo Box |
Name |
cboPlayers |
Combo Box |
Text |
(Empty) |
List Box |
Name |
lstPlayers |
|