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
SDI Application The SDI application uses the main frame window to exhibit a document. Only one document can be opened at a particular time.

DIALOG BOXES IN VB The two dialog boxes, namely, the message box and the input box are usually used in the Visual Basic. The message box is used for displaying the messages to

I have a project due tomorrow that I am really struggling in. Please help.

Adding Events in VB   For adding the events in VB, first double click on the command button with the caption hello. The Private Sub command1_Click () and End Sub would be

Hi, i need help in vb.net for the pelmanism game. I will appreciate if you can get back to me please

Question 1 Design a form based applications using labels, text boxes, and buttons to perform basic arithmetic operations on integers Question 2 Describe the concept of Except

Data types: The New data types were defined by using the typedef or #define statements. This was to allow the transition from 16 bit to 32 bit system. Some of the fresh data t

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

To run only one statement while a condition is True, employ the single-line syntax for the If...Then...Else statement. The following instance shows the single-line syntax. Notice t

A program needs to be written that is capable of simple image processing. All the images that are available for you to use, can be found on Blackboard in the Assignments section. T