Changing the Course Control to a Combo Box

In this topic, using the dialog editor, you will convert the Course edit control to a drop-list style combo box.

Suggested Reading

To change the Course control to a combo box

  1. Click the ResourceView tab and expand the Dialog folder.

  2. Double-click the dialog resource IDD_ENROLL_FORM.

  3. Select, and then delete the Course edit control.

  4. Add a combo box in its place.

  5. Right-click the combo box and click Properties from the pop-up menu. Pin down the Combo Box Properties box, and then specify the following:
  6. Increase the size of the combo drop-down box so it can show more than two course names at a time:
  7. Change the tab order of the dialog box to make sure that the new control follows its associated static text label in the tab order. This enables ClassWizard to match the recordset member to the static text caption.

    The tab order should ripple through the other controls, keeping the sequential relationship between each static text and its associated edit control.

  8. Press ESC to exit Tab Order mode.

    Leave the dialog editor open for the next procedure.

The figure below  shows the final appearance of Enroll Step 2 with the combo box in place.

Enroll Step 2 with a Combo Box