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
msgbox("your text here" & Environment.NewLine & "more text") is the easist way. no point in making your code harder or more ocmplicated than you need it to be...
Try using
vbcrlf
for a newlineAdd a
vbNewLine
as:Use the command "vbNewLine"
Example
will show up as Hello on one line and World on another
On my side I created a sub MyMsgBox replacing \n in the prompt by ControlChars.NewLine
The message box must end with a text and not with a variable