I'm writing a program in vb.net where i want to add a newline like "\n" in C within System.Console.WriteLine().
How can i do this?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ankit NandekarRank #703 · 3.4K reputationPosted May 5, 2011, 3:40 AM EDT
Console.WriteLine("Name:Ankit Nandekar{0}Age:24", Environment.NewLine)
output:
Name:Ankit Nandekar
Age:24
VulpesRank #55 · 29.2K reputationPosted May 5, 2011, 3:31 AM EDT
Please see this link (http://msdn.microsoft.com/en-us/library/dy7yth1w.aspx) for a list of other predefined constants in VB.
CrishRank #1,486 · 1.1K reputationPosted May 5, 2011, 4:20 AM EDT
VulpesRank #55 · 29.2K reputationPosted May 5, 2011, 4:44 AM EDT
Ran22 reputationPosted May 5, 2011, 10:25 PM EDT
Ankit NandekarRank #703 · 3.4K reputationPosted May 5, 2011, 10:43 PM EDT