Maruthi Ram

Maruthi Ram

  • NA
  • 4
  • 6.3k

How to break a line in window form application?

Feb 21 2013 1:29 AM
I want to display a line in a text area on a button click event...and next line should be displayed in a new line..How can it be possible??

 private void button1_Click(object sender, EventArgs e)
        {
            textBox2.Text += textBox1.Text + "\n\n";
            textBox1.Text = "";
        }

Answers (2)