Reflecting escape characters in multiline textbox?

  • Thread starter Thread starter Steven
  • Start date Start date
S

Steven

.... so I faced a problem.
When adding such a value to the txtBox.Text property: "Connected
successfu.\nEnter new data.", I get no newline effect. Instead there is that
message in one row diveded with tokens look like bold wertical dashes. Thus
any escape character in my code convertes into that token.
What is the solution?
 
Steven,
... so I faced a problem.
When adding such a value to the txtBox.Text property: "Connected
successfu.\nEnter new data.", I get no newline effect. Instead there is that
message in one row diveded with tokens look like bold wertical dashes. Thus
any escape character in my code convertes into that token.
What is the solution?

A newline in Windows is \r\n - use Environment.NewLine.



Mattias
 
Back
Top