Over a million developers have joined DZone.

C#: Inserting New Line In Multiline Textbox

·
// Ref: http://www.geekpedia.com/Question19_How-can-I-insert-a-new-line-in-a-TextBox.html
// Make sure MultiLine property is true and use "\r\n"


  TextBox1.Text = "First line\r\nSecond line";
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}