Duplicating a Control

Summary: Add more push buttons.

Hold down the CTRL key, then drag the push button to a new location and drop it. Repeat the process to create a third push button.

You've just seen a convenient way of duplicating a control—click an existing one while holding down the CTRL key.

You can also use the CTRL key when selecting controls from the Toolbox. Hold down the CTRL key when you click a Toolbox button, and the Toolbox button stays down. You can then click repeatedly in the dialog and place a number of identical controls.

Give the second button the symbol IDCANCEL and the label CANCEL.