Tuesday, December 11, 2007

How to work with OK Message Box

How to work with OK Message Box

To work with OK Message Box

Step 1:

Add the Command Button in the Form:

Step 2:

Type in the programming codes for the Command button. In this example, a message box will be displayed after clicking on the button:

Private Sub Command1_Click()

MsgBox "Please Click Me!!!", vbOKOnly

End Sub

Step 3:

There is a message box displayed after clicking on the button:

No comments: