Tuesday, December 11, 2007

How to show the Message Box with the Value

How to show the Message Box with the Value

To show the Message Box with the Value

Step 1:

Add the CommandButton in the Form:

Step 2:

Type in VB programming codes to the Command button. In this example, a Message box with value will be displayed after clicking on the Command button.

Private Sub Command1_Click()

MsgBox "Hello", 0

End Sub

Step 3:

The Message box with value is displayed after clicking on the Command button:


No comments: