joe_pool_is Posted June 20, 2006 Posted June 20, 2006 How are Line Breaks written to a TextBox in C#? [CS]TextBox1.Multiline = True; TextBox1.Text = "Line 1\nLine 2"; // does not add a new line.[/CS] Quote Avoid Sears Home Improvement
Cags Posted June 20, 2006 Posted June 20, 2006 try... [CS]TextBox1.Multiline = True; TextBox1.Text = "Line 1\r\nLine 2";[/CS] Quote Anybody looking for a graduate programmer (Midlands, England)?
Leaders snarfblam Posted June 20, 2006 Leaders Posted June 20, 2006 Windows uses carrige-return/linefeed line breaks, whereas Macs are just carrige-return and Unix is just linefeed (I believe). Many programs are flexible in the matter, but appearently not Windows Common Controls. Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.