Newline Dialog

  • Thread starter Thread starter JJ
  • Start date Start date
J

JJ

Hi,

I was wondering what is the constant for newline so that I can add
newlines in messageBoxs ?
Vb has vbcCrLf what is it for C#?

Thanks,

JJ
 
Environment.NewLine.

Ignacio Domínguez said:
The exact equivalent for vbCrLf in C# is "\r\n". \r is carriage return and
\n is line feed
 
This Environment.Newline seems like alot of typing for crlf when \r\n is
alot quicker.
And where did they come up with the name Environment ? It seems so ambiguos.

JJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top