I am trying to write \r\n as a string but when i do it apears as a newline.
Here is the code i am using :

textBox1->Text="test"+"@\r\n";

but it shows as :

test@

how would i let it show as

test/r/n

?

If ye' are trying to display an ascii escape character as text, simply add an extra \ backslash before each escape character.

thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.