Return to Snippet

Revision: 13369
at April 21, 2009 15:22 by mordecaix7


Updated Code
System.Environment.NewLine

this.myTextArea.Text += 
     "This is the first line" + 
     System.Environment.NewLine + 
     "this is on the next line.";

Revision: 13368
at April 21, 2009 15:20 by mordecaix7


Initial Code
System.Environment.NewLine

this.myTextArea.Text += "This is the first line" + System.Environment.NewLine + "this is on the next line.";

Initial URL

                                

Initial Description
Sometimes you may need a carriage return in your text.  Line 1 is the code for a carriage return in C# and line 3 shows an example of how to use it.

Initial Title
Carriage Return in C#

Initial Tags
text

Initial Language
C#