IT Knowledge
Sunday, May 20, 2012
new line in a TextBox C#
ex.
TextBox1.Text = "First line\r\nSecond line";
TextBox1.Text = "First line" + + Environment.NewLine + "Second line";
\r works
\n works
\r\n works
Environment.NewLine works
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment