• Advertisement

Archived

This topic is now archived and is closed to further replies.

[C#] Silly texbox question - endline?

This topic is 5032 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do you make an endline in a multi-line textbox in C#? The old standard ''\n'' doesn''t work and it printed out as a garbage character. The examples in all of my books don''t even work with multiline textboxes and msdn hasn''t been too helpful. Thanks much in advance.

Share this post


Link to post
Share on other sites
Advertisement
"\r\n"

Edit: Actually it's probably better to use Environment.NewLine

[edited by - Martee on April 14, 2004 3:44:23 PM]

Share this post


Link to post
Share on other sites
Heh, it only works exactly like that. Thanks much!

EDIT:
quote:
Original post by Martee
Edit: Actually it's probably better to use Environment.NewLine

Cool, thanks again.

[edited by - kordova on April 14, 2004 3:48:35 PM]

Share this post


Link to post
Share on other sites

  • Advertisement