Click to See Complete Forum and Search --> : msgbox question
casparas
Dec 29th, 1999, 05:36 PM
Now after hard two days of training on vb6
i know something about it but i have on small
question
how to change the caption of messagebox(msgbox)?
well you know that text in the top
Joacim Andersson
Dec 29th, 1999, 05:48 PM
The caption is the third argument of a MsgBox!
Call MsgBox("This is a message, vbOKOnly, "Message")
Good luck!
------------------
Joacim Andersson
joacim@programmer.net
joacim@yellowblazer.com
www.YellowBlazer.com (http://www.YellowBlazer.com)
casparas
Dec 29th, 1999, 06:00 PM
thanx
-casparas
venkatraman_r
Dec 29th, 1999, 06:01 PM
Hi,
Its a simpler one.
msgbox "Happy Millenium",vbokonly,"Your Title to appear in the msgbox heading"
Thats all.
Regards and happy learning.
Venkat :) :)
Mark Sreeves
Dec 29th, 1999, 06:04 PM
Joacim, why do you use Call with a message box?
I think hez calling the msgbox.. :)
Crazy D
Dec 29th, 1999, 07:14 PM
*LOL* yes he's calling the msgbox..
If you have function which want more then 1 parameter, you can call it like either
MyFun Par1, Par2, Par3
or
Call MyFun(Par1, Par2, Par3)
If you remove the Call in the 2nd one, you get an error... (instead of call you can also check the return type, for instance, a boolean:
If MyFun(Par1, Par2, Par3) Then
' something
Else
' something else
End if
By the way, I assume your keyboard has a F1 key to... if you press that, you get help :-)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.