Probably The Dumbest Question

MadMaxx

.NET foo
Local time
Today, 03:41
Joined
Jun 27, 2003
Messages
138
Hey all.

I'm a having a sever brain fart in VB due to programming in C++ for the past month.

Just have a quick question. Is there a switch you can use with the MsgBox function that will give you multiple lines in the message box.

Thanx in advance.
 
Code:
MsgBox "First" & [b]Chr(13)[/b] & "Next", vbOKOnly, "Chr(13)"

MsgBox "First" & [b]Chr(10)[/b] & "Next", vbOKOnly, "Chr(10)"

MsgBox "First" & [b]vbCrLf[/b] & "Next",  vbOKOnly, "vbCrLf"

MsgBox "First" & [b]vbNewLine[/b] & "Next", vbOKOnly, "vbNewLine"
These all work. Not sure what the difference is between them though..
 
Last edited:
yeah. I found the vbCrLf one therre about an hour ago. Works so I will use it. Thanks anyway.
 

Users who are viewing this thread

Back
Top Bottom