By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

add new line in messagebox text - not using VbCrLf - how?

P: n/a
Is it possible to add a new line to the text for a message box like html

"this is msg1 <brthis is msg2"

versus
"this is msg1" & VbCrLf & "this is msg2?

Or like C#
"this is msg1 \n this is msg2"

Thanks,
Rich
Nov 13 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
=?Utf-8?B?UmljaA==?= <Ri**@discussions.microsoft.comwrote in
news:E2**********************************@microsof t.com:
Is it possible to add a new line to the text for a message box like html

"this is msg1 <brthis is msg2"
You'll need to replace <brwith the carriage return and line feed
characters.

i.e. Replace(myString, "<br>", vbcrlf)
Nov 13 '06 #2

P: n/a
"Rich" <Ri**@discussions.microsoft.comschrieb:
versus
"this is msg1" & VbCrLf & "this is msg2?

Or like C#
"this is msg1 \n this is msg2"
In both cases similar string literals will be emitted, except that 'vbCrLf'
corresponds to "\r\n" in C#.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 13 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.