2. Type of dialog box
There are basically two type of dialog box in vb6.0
MessageBox
InputBox
3. MessageBox
MessageBox simply display a message in a dialog box
and wait for the user to click a button and return an
integer indicating which button the user clicked.
Syntax:
MsgBox(prompt[,button+icon] [,title])
4. MessageBox continue……..
Prompt :
prompt is a single line of message(string
expression) if we want to more than one line then
we can use
vbCrlf or chr(13)
Buttons+Icon:
Specify Sum of the numeric value to display type of
button and icon
5. MessageBox continue…….
Title :
Title is just a string expression display in title bar.if we
don’t add any title then by default the application
name is placed in title bar.
9. InputBox in vb6.0
InputBox displays a prompt in a dialog box and wait for
the user to input text or click a button , and return a
string containing the contents of the text box.
Syntax:
Variable=InputBox(prompt[, title][, default])
10. InputBox continue……….
Here the prompt and title same as Msgbox
Default-text:
The default text that appears in the input field where
user can use it as his intended input or also user may
change to the message he wish to key in