Newbie Q Re: Escape Characters

  • Thread starter Thread starter Jamey Bon
  • Start date Start date
J

Jamey Bon

I am using "\n" in string literals and displaying them in a multiline
TextBox Control. I do get a new line, as expected, but every line displays
with a little box like symbol at the end. What is this about and how can I
avoid it?

Thanks,

JB
 
What is this about and how can I avoid it?

A new line in Windows is represented by the combination "\r\n". Use
that, or better yet use System.Environment.NewLine.


Mattias
 
A new line in Windows is represented by the combination "\r\n". Use
that, or better yet use System.Environment.NewLine.


Mattias

Exactly what I needed. Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top