Jump to content
  • Advertisement

Archived

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

kordova

[C#] Silly texbox question - endline?

This topic is 5303 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!