Use CommandButton controls, shown in Figure 3-22, to allow users to signify that they have made all the selections and text entries they want to make, and either want to continue on with the application or want to cancel the operation. The most common use of this control is for OK and Cancel button operations.
The following is the most common method of ending a running application:
Private Sub cmdOK_Click()
Unload Me End Sub
Was this article helpful?