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

Wasim A. picture Wasim A. · Mar 1, 2011 · Viewed 378.2k times · Source

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

Answer

Fun Mun Pieng picture Fun Mun Pieng · Mar 1, 2011
  • 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