How to show Message Box with the Value
To show 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:
This is the result. Note that the '0' will tell the program to display a button with 'OK' word:
No comments:
Post a Comment