2
Answers

How to break a line in window form application?

Maruthi Ram

Maruthi Ram

11y
1.1k
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