2
Answers

How to break a line in window form application?

Photo of Maruthi Ram

Maruthi Ram

12y
1.5k
1
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)

Next Recommended Forum