Paul E Collins <fi******************@CL4.org> wrote:
"Morten Wennevik" <Mo************@hotmail.com> wrote:
First, you should use \r\n and not just \n
"\r\n" can be used if you only intend your application to run under
Windows.
If you're concerned about portability, use Environment.NewLine.
I don't know about that - Environment.NewLine is to do with the new
line for the platform in general. There's no guarantee it'll be what
the *text box* uses for a new line. For instance, running with Mono
under Linux, I'd expect Environment.NewLine to be '\n' but if they're
trying to get Windows Forms compatibility with .NET, TextBox may well
still require '\r\n'.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too