Add a customized control to the Toolbox

        

  1. Place a control on your form and customize it.

  2. For example, to create an OK button, place a CommandButton on the form, set its Caption property to OK and set its Default property to True.

  3. Select the customized control.

  4. Drag the control to the Toolbox.

Note   When you drag a control onto the Toolbox, you only transfer property values. Any code you have written for that control does not transfer with the control. You must write new code for the icon or copy code from the control on the form to the control on the Toolbox.