new line in textBox1->Text

Jan 28, 2011 at 1:39am
Thank everyone for helping me with batch file program. I am currently having other issues though.

I used the code for a few buttons

textBox1->Text = textBox1->Text + "\n dir \n";

textBox1->Text = textBox1->Text + "\n pause \n";

textBox1->Text = textBox1->Text + "\n you get the idea\n";

everthing works, except the "\n" it makes this little square in the text box instead of a new line. I also tried
endl;
But it didn't work either. What do I do here?
Last edited on Jan 28, 2011 at 1:40am
Jan 28, 2011 at 9:58am
If I rememebr correctly:

1. The EDITBox has to be a multiline style editbox in order to display multiple lines.

AND

2. To get the new line it should be \r\n
Jan 28, 2011 at 9:20pm
the multiline is enabled, but when I say "\n" I get this funcky square thing. I'll try \r\n though. and see what happens
Feb 2, 2011 at 8:18am
guestgulkan' answer is right
Feb 2, 2011 at 10:54pm
Thanks guys
Topic archived. No new replies allowed.