What is the alternative to \n (for new line) in a VB.NET MsgBox()?
相关问题
- 'System.Threading.ThreadAbortException' in
- how to use special characters like '<'
- C# to VB - How do I convert this anonymous method
- Scaling image for printing
- visual basics equal to or greater than
相关文章
- vb.net 关于xps文件操作问题
- Checking for DBNull throws a StrongTypingException
- Using the typical get set properties in C#… with p
- Load a .NET assembly from the application's re
- C# equivalent of VB DLL function declaration (Inte
- What other neat tricks does the SpecialNameAttribu
- Automatically install updates with ClickOnce deplo
- MsgBox Yes/No Excel VBA
or in .NET
msgbox "This is the first line" & Environment.NewLine & "and this is the second line"
vbCrLf
orvbNewLine
Environment.NewLine
orvbCrLf
orConstants.vbCrLf
Info on VB.NET new line: http://msdn.microsoft.com/en-us/library/system.environment.newline.aspx
The info for
Environment.NewLine
came from Cody Gray and J VermeireUsage:
You can use carriage return character (Chr(13)), a linefeed character (Chr(10)) also like
An alternative to Environment.NewLine is to use :
from System.Text.RegularExpressions
This allows you to escape Text without Concatenating strings as you can in C#, C, java
This work for me:
MessageBox.Show("YourString" & vbcrlf & "YourNewLineString")