Text Boxes - VB to C# question

  • Thread starter Thread starter Scupper
  • Start date Start date
S

Scupper

This is probably a boneheaded question, but I'm new to C#, coming from VB.

What is the C# equivalent of "vbcrlf"? I tried "\n" but it doesn't register
as a line break. It just shows as a "[]"-looking character.

Thanks.
 
Scupper,

You should use the static NewLine property on the Environment class.
This should give you the value that you are looking for.

Hope this helps.
 

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

Similar Threads


Back
Top