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.
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.