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
A lot of the stuff above didn't work for me. What did end up working is
The correct format is :
These are the character sequences to create a new line:
vbCr
is the carriage return (return to line beginning),vbLf
is the line feed (go to next line)vbCrLf
is the carriage return / line feed (similar to pressing Enter)I prefer
vbNewLine
as it is system independent (vbCrLf
may not be a true new line on some systems)Use the
Environment.NewLine
property