how to add new line to text box
-
i want to add a new line to a text box.
txtstate.multiline = true
txtstate.text+= "\n";
or
txtstate.appendtext("\n");
doesn't work. all he texts are displayed in the same line.
-
i want to add a new line to a text box.
txtstate.multiline = true
txtstate.text+= "\n";
or
txtstate.appendtext("\n");
doesn't work. all he texts are displayed in the same line.
Use – "\r\n" This should give you a new line. -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
i want to add a new line to a text box.
txtstate.multiline = true
txtstate.text+= "\n";
or
txtstate.appendtext("\n");
doesn't work. all he texts are displayed in the same line.
you need to use \r\n (carriage return and newline)
-
you need to use \r\n (carriage return and newline)
damnit, too late!
-
i want to add a new line to a text box.
txtstate.multiline = true
txtstate.text+= "\n";
or
txtstate.appendtext("\n");
doesn't work. all he texts are displayed in the same line.
-
i want to add a new line to a text box.
txtstate.multiline = true
txtstate.text+= "\n";
or
txtstate.appendtext("\n");
doesn't work. all he texts are displayed in the same line.
I searched and found out that in VC++ 2008 can use this
textBox1.Text = "Line One"; textBox1.Text += **Environment::NewLine**; textBox1.Text += "Line Two";
Hope it help you! :)