To demonstrate the use of the Input Box as shown in figure. Now consider the illustration shown below:
1. Initiate a new project
2. Select the standard exe
3. Add a command button into the form
4. Handle the double click for the command button and code the handler as shown below.
Private Sub Command1_Click()
Dim r As String
r = InputBox("name")
MsgBox "hello " & r
5. Execute it.
6. The input box request for an input
7. The input is once entered (say mca) hello mca would be exhibited using the message box; & is used for the string concatentation.
Figure: Input Box