08-08-2005, 01: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!
08-08-2005, 02: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...
08-08-2005, 02: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!
08-08-2005, 02:16 AM
Try using VbCrlf where you want the line break
08-08-2005, 02: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?
08-08-2005, 02: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" :)
08-08-2005, 02:48 AM
Wow, I feel dumb. Thanks for helping!
08-08-2005, 02: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."
08-08-2005, 03:02 AM
lol, w00t. You guys are awesome!