Wasim Wasim - 2 years ago 156
Vb.net Question

How to use \n new line in VB msgbox() ...?

What is the alternative to \n (for new line) in a VB.NET MsgBox()?

Answer Source
for VB: vbCrLf or vbNewLine
for VB.NET: Environment.NewLine or vbCrLf or Constants.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 Vermeire

Thanks guys

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download