Message Box crap

dragon890x
08-08-2005, 12:39 AM
I'm making a program...and I want it to start out with a message box. But I noticed the message box only contains a certain amount of space. Then I saw another program that had a message box *but not entirely* that had a bubble with an "I" in it. I noticed that the size of this message was a lot bigger then the regular message box. Can somebody please tell me the command to do this? Thanks!

DominusMegadeum
08-08-2005, 01:04 AM
MsgBox "This is my MessageBox. There are many like it, but this one is mine...", vbInformation + vbOKOnly

You could also create a "custom" MessageBox using a form...

dragon890x
08-08-2005, 01:07 AM
Thanks for the help. :) But this brings up another question..
How do I make it so at the exact point I want, a new line would appear? Like:

=======
* TEST *
=======

Because I would end up getting:
=======* TEST *=======

I appreciate this!

Ales Zigon
08-08-2005, 01:16 AM
Try using VbCrlf where you want the line break

dragon890x
08-08-2005, 01:28 AM
It doesn't work...or maybe I'm doing it wrong....I did this...

Msgbox "test" & vbClrf & "newline", vbInformation, vbOKOnly
And one with the vbClrf like VbClrf....

I get "testnewline"....

Is the code suppose to be typed a certain way for the new line part to take effect?

TeraBlight
08-08-2005, 01:44 AM
1. Use Option Explicit (Menu Tools -> Options -> Tick "Require Variable Declaration")

2. The name of the constant is short for "Carriage Return & Line Feed", so it's vbCRLF, just like Ales posted. You misspelled it. Using Option Explicit would have told you this by producing an error, without it, it just assumes you want to use a new variable called "vbClrf" :)

dragon890x
08-08-2005, 01:48 AM
Wow, I feel dumb. Thanks for helping!

Premiere
08-08-2005, 01:52 AM
or you could always do MsgBox "This is my MessageBox." & VbNewLine & " "There are many like it, but this one is mine...", vbinformation, "Testing VbNewLine Command."

dragon890x
08-08-2005, 02:02 AM
lol, w00t. You guys are awesome!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum