Posted By

mordecaix7 on 04/21/09


Tagged

text return carriage


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

paelgr
umang_nine
khouser
danfinrud55


Carriage Return in C#


 / Published in: C#
 

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.

  1. System.Environment.NewLine
  2.  
  3. this.myTextArea.Text +=
  4. "This is the first line" +
  5. System.Environment.NewLine +
  6. "this is on the next line.";

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: nufino on September 16, 2009

sos

You need to login to post a comment.