How to work with Input Box
To work with Input Box
Step 1:
Add the CommandButton in the Form:
Step 2:
This is the Syntax:
InputBox(prompt[, title] [, default] [, xpos] [, ypos] [, helpfile, context])
Step 3:
This is the VB programming codes. In this example, an Input box will be displayed:
Private Sub Command1_Click()
InputBox "Please Enter your Name", , , 100, 100
End Sub
Step 4:
User will be asked to type in Name and click on 'OK' button to continue:
No comments:
Post a Comment