input prompt window with InputBox

InputBox() function is used to prompt the user to input some values.

Example :

Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim name As String
        name = InputBox("enter your name")
        MsgBox("your name is " & name)

    End Sub
End Class

Output :