P Peter Jausovec Nov 19, 2004 #2 Hi, Use label1.Text = "First line" + Environment.NewLine + "Second line";
D Dino L. Nov 19, 2004 #3 Peter said: Hi, Use label1.Text = "First line" + Environment.NewLine + "Second line"; Click to expand... or label1.Text = "First line\nSecond line";
Peter said: Hi, Use label1.Text = "First line" + Environment.NewLine + "Second line"; Click to expand... or label1.Text = "First line\nSecond line";
J Jon Skeet [C# MVP] Nov 19, 2004 #4 Dino L. said: or label1.Text = "First line\nSecond line"; Click to expand... No, that won't work - you need \r\n, not just \n.
Dino L. said: or label1.Text = "First line\nSecond line"; Click to expand... No, that won't work - you need \r\n, not just \n.
J James Curran Nov 19, 2004 #5 Unless this is for ASP.NET, inwhich case I believe we'll want label1.Text = "First line<BR>Second line"; -- Truth, James Curran [erstwhile VC++ MVP] Home: www.noveltheory.com Work: www.njtheater.com Blog: www.honestillusion.com Day Job: www.partsearch.com
Unless this is for ASP.NET, inwhich case I believe we'll want label1.Text = "First line<BR>Second line"; -- Truth, James Curran [erstwhile VC++ MVP] Home: www.noveltheory.com Work: www.njtheater.com Blog: www.honestillusion.com Day Job: www.partsearch.com