Hi,
Could someone help me to append text to a text box so that it is added to new line into the text box. Text box's multiline property is set to true.
Thanx in advance
How to append text to a TextBox into new line.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Solitaire85 reputationPosted Aug 24, 2006, 2:23 PM EDT
In Visual Basic, concatenate vbCrLf to the string:
Textbox1.Text = Textbox1.Text & vbCrLf & "Second line" & vbCrLf & "Another new line"
Alternatively, you can use
Environment.New Line for both VB and C#:
TextBox1.Text = TextBox1.Text & Environment.NewLine & "Second Line" & Environment.NewLine & "Third Line"
textBox1.Text = textBox1.Text + Environment.NewLine + "Second Line"
+
Environment.NewLine + "Third Line";Sukhbir Dalal3 reputationPosted Aug 24, 2006, 8:18 PM EDT
Thanx for ur comments.
I got that by inserting the special characters "\r\n" after the text.