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#.
Printable View
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#.
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".
Thanks sir