K
Kaka
Hi, I am a learner for C# and .Net.
I want to know how to put a line break to a string so that when it show in
the textbox the text will be displayed in saperated lines.
e.g.:
String s;
s = "AAAAAAAAAAAAAAAAAAAAA";
s += "BBBBBBBBBBBBBBBBBBBBBBB";
txtOutput.Text = s;
I want to show them like:
AAAAAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBBBBBB
But the output is always in one line:
AAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBB
Even I include a "\n" at the end at the first line:
s = "AAAAAAAAAAAAAAAAAAAAA\n";
Thanks
I want to know how to put a line break to a string so that when it show in
the textbox the text will be displayed in saperated lines.
e.g.:
String s;
s = "AAAAAAAAAAAAAAAAAAAAA";
s += "BBBBBBBBBBBBBBBBBBBBBBB";
txtOutput.Text = s;
I want to show them like:
AAAAAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBBBBBB
But the output is always in one line:
AAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBB
Even I include a "\n" at the end at the first line:
s = "AAAAAAAAAAAAAAAAAAAAA\n";
Thanks