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
The Frame: As the name suggests, the frame is a combination of the building blocks, structure and the borders of an item. The frame gives the "physical" presence to a window.

Write Visual Basic programs for the following: 1.     Write a program that uses a "For Loop" to generate a list of temperature conversions in one degree increments from a given

DYNAMIC LINK LIBRARY - DLL   The DLL are files which can be called when required by the other program that is running in the computer. The DLL files which support the specific

Steps for Creating A MDI Form: 1. Build a new form and set IsMdiContainer property to true. 2. Build a child form class to add to the form. 3. Now Right click the proj

A program is needed to assist computing automobile repair bills. The cost of labor is $35 per hour. The costs for parts are subject to a 5% sales tax, which should be added t

Returns or sets a numeric value indicating an error. Number is the Err object's default property. While returning user-defined error from an Automation object, set Err.Number throu

Illustration of GDI object CPen: 1. Generate a SDI application. And name it as gdipen. 2. Press ctrl (control key) and W altogether to invoke the class wizard. 3. Choose

Graphics Device Interface - GDI:   The GDI is a windows API. The GDI uses a set of generic graphics objects to draw to the screen, to the memory and printers. Therefore the p

Please help me.. I am loading data from a text file to a class (Item Inventory from Tony Gaddis - Visual Basic - Chapter 12 -programming challange# 7-9) and the last item loaded is

Methods: VBScript Dictionary Object Method D escription Add Method Adds a key, item pair. Exists Method