PDA

Click to See Complete Forum and Search --> : [RESOLVED] [2.0] New line


shakti5385
Mar 16th, 2007, 12:05 AM
Hi all:wave:
What I use for the new line in C#.Net as we use th VbNewLine in the VB.NET, what for the c#.

jmcilhinney
Mar 16th, 2007, 12:21 AM
We shouldn't use the vbNewLine in VB.NET; we should use the Environment.NewLine or the ControlChars.NewLine.

You can use Environment.NewLine in C# also, but if you're programming only for Windows then it's easier to use the literal string "\r\n".

shakti5385
Mar 16th, 2007, 12:55 AM
Thanks sir