New line in TextBox

  • Thread starter Thread starter José Manuel Escrivá
  • Start date Start date
J

José Manuel Escrivá

I need to write multiple lines in a TextBox, and I try with this:
txtNotas.Text= "One line." + "\n\r" + "Another line.";
but this don't works.
The result is:
One line.[][]Another line.
when I want get:
One line.
Anothe line.

Any sugestions?
Tanks a lot!
 
You will need to do the following:

txtNotas.Multiline = true;
txtNotas.Text = "One line.\r\nAnother line.";
 
Back
Top