Step 2 of 4: Adding Items to the ComboBox Control
In This Topic
In the last step, you created a project and added two C1ComboBox controls to it. In this step, you will add three items to the first combo box.
Complete the following steps:
- Select the first C1ComboBox, Category.
- In the Properties window, click the Items ellipsis button to open the Collection Editor: Items dialog box.
- Click Add three times to add three C1ComboBoxItems to the control. Three C1ComboBoxItems named c1ComboBoxItem1, c1ComboBoxItem2, and c1ComboBoxItem3, are added to the control.
- Set c1ComboBoxItem1’s properties as follows:
- Set the Content property to "Comedy".
- Set the Height property to "25".
- Set c1ComboBoxItem2’s properties as follows:
- Set the Content property to "Drama".
- Set the Height property to "25".
- Set C1ComboBoxItem3’s properties as follows:
- Set the Content property to "Science Fiction".
- Set the Height property to "25".
- Click OK to close the Collection Editor: Items dialog box.
In this step, you added items to the first combo box. In the next step, you will add code to the project that will populate the second combo box with items when a user selects an item in the first combo box.