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
What are the differences between Property Get, Set and Let? Set - Value assigned to ActiveX Object from the form. Let - Value retried to ActiveX Object from the form. Get- Assigns

FILES IN A VB PROJECT The project file has the.vbp extension. The form in which we draw has the .frm extension; .mod denotes the module file; .cls denotes the class file; .res

Cdatabase Class: The CDataBase class helps to connect to the data source. The Open member function opens a connection to the data source. CRecordset class is used for performi

Sets or returns context ID for topic in Help File. If Help file is indicated in the VBScript Err Object HelpFile Property, the HelpContext property is utilized to display automatic

DYNAMIC LINK LIBRARY   The dynamic link library (dll) permits one copy of a function to be shared among some parallel executing programs. The dll is a file that contains a num

steps of connecting database from vb6.0

flow chart symbols

INTRODUCTION TO GUI DESIGN AND FILE HANDLING   The aim of the user interface design is to attain the user's goals. When the user's goals are met, the user is satisfied and the

A For Each...Next loop is similar to a For...Next loop. Rather than repeating the statements a particular number of times, For Each...Next loop repeats group of statements for each

A constant is a meaningful name which takes the place of a number or string and never alters. VBScript described a number of intrinsic constants. You can get thorough information r