new line in textBox1->Text

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
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
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
guestgulkan' answer is right
Thanks guys
Topic archived. No new replies allowed.