Input box - dialogue box in visual basic , Visual Basic Programming

Input Box:

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

End Sub

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.

1081_input box.png

        Figure: Input Box

Posted Date: 10/9/2012 9:19:38 AM | Location : United States

Related Discussions:- Input box - dialogue box in visual basic , Assignment Help, Ask Question on Input box - dialogue box in visual basic , Get Answer, Expert's Help, Input box - dialogue box in visual basic Discussions

Write discussion on Input box - dialogue box in visual basic
Your posts are moderated
Related Questions
A triangle is equilateral if all three sides are equal, isosceles if any two (but no more than two) sides are equal, and scalene if no two sides are equal. A triangle will be input

Use of WM_SIZE Message: Whenever the WM_SIZE message is handled and the graphical objects on the output window will also change consequently to the output window. The functi

Part 1: Create an application that allows the user to enter the following employee data: First Name, Middle Name, Last Name, Employee Number, Department, Telephone Number, Telephon

Displaying a file With Scrolling: To display a file with the scrolling option allows the steps as shown below: 1. Generate a SDI application. 2. In the Step 6 of the App

i want to print number following pattern 1 12 123 1234

Earlier versions of VBScript had no mechanism for making user-defined constants. Constants, if utilized, were implemented as variables & distinguished from other variables by using

In VBScript, the While...Wend statement is provided for those who are familiar along its usage. However, due to the lack of flexibility in While...Wend, it is suggested that you us

ToolTip: The ToolTip property is used to flash a message regarding a control object when the mouse pointer moves over that object for a couple of seconds. Pick a control and c