Tuesday, December 11, 2007

How to work with Yes or No Message Box

How to work with Yes or No Message Box

To work with Yes or No Message Box

Step 1:

Add the Command Button in the Form:

Step 2:

Type in the VB programming codes for the button. A Yes/No box will be displayed after clicking on the button:

Private Sub Command1_Click()

MsgBox "Please Click Me!!!", vbYesNo

End Sub

Step 3:

Yes/No box is displayed after clicking on the button:

No comments: