Computing.Net > Forums > Programming > vb.net MsgBox next line

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

vb.net MsgBox next line

Reply to Message Icon

Original Message
Name: intrepid_dave
Date: June 22, 2005 at 05:04:13 Pacific
Subject: vb.net MsgBox next line
OS: xp pro
CPU/Ram: barton 3200, 1 gig ra,
Comment:

When i'm putting in information into a message box i can't go to the next line in the editor (visual studio .net). So this means i have to type everything in the next line.

I know how to display things on different lines, i.e. vbNewLine , but when i'm coding it i don't want to have one big long line.

For Example:
This:

MsgBox("bla line1" & vbNewline & "blaline2")

To Be This on the editor:

MsgBox("bla line1" & vbNewline
& "blaline2")


Report Offensive Message For Removal


Response Number 1
Name: intrepid_dave
Date: June 22, 2005 at 05:06:45 Pacific
Reply: (edit)

Hi, sorry, "So this means i have to type everything in the next line"

i meant

"So this means i have to type everything on the same line"

can anyone help?

:D




Report Offensive Follow Up For Removal

Response Number 2
Name: SN
Date: June 22, 2005 at 07:02:39 Pacific
Reply: (edit)

Use the line continuation character '_':

MsgBox("bla line1" & vbNewline _
& "blaline2")

-SN


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software