New line in .NET

I

Ioannis Vranos

What is the new line character for a TextBox/System::String/Clipboard?
'\n' seems to copy to ClipBoard a square symbol.






Best regards,

Ioannis Vranos
 
B

Ben Schwehn

Ioannis said:
What is the new line character for a TextBox/System::String/Clipboard?
'\n' seems to copy to ClipBoard a square symbol.

probably \r\n

there is also a constant like Enviroment.NewLine. Don't have the docs
available right now and too lazy to google...

hth
 
I

Ioannis Vranos

Ben said:
probably \r\n

there is also a constant like Enviroment.NewLine. Don't have the docs
available right now and too lazy to google...


Yes I checked it and "\r\n" seems to work. Thanks for the tip.






Best regards,

Ioannis Vranos
 

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

Top