P
Philip.Arbin
I put a text box on a form and set it to "multi line".
I use it to show some log information.
Every time there is some information, I use TextBox.AppendText method to add
a information string and a "\n" into the text box. There will be a line
break after the infromation string for the "\n" charactor.
But after i resized the form or click some other window on the task bar and
switch back, the line break disapears. All the text turns into only one
single line.
Is there something wrong using "\n" in multiline text box?
Is there any solution for this issue? or I should use richtextbox or detail
listview instead?
I use it to show some log information.
Every time there is some information, I use TextBox.AppendText method to add
a information string and a "\n" into the text box. There will be a line
break after the infromation string for the "\n" charactor.
But after i resized the form or click some other window on the task bar and
switch back, the line break disapears. All the text turns into only one
single line.
Is there something wrong using "\n" in multiline text box?
Is there any solution for this issue? or I should use richtextbox or detail
listview instead?