I'm trying to serialize the contents of a textbox to xml. The serialization works fine, but when i deserialize the contents and try to fill the textbox.text, new lines show up as litte squares instead of a new line. How would i solve this problem
I guess one way would be to split the string into an array and filling the textbox this way, but i'm not quite sure how to do this either.

newline when serializing textbox
Scott Munro
(assuming that \n was being found and not \r) .
sqldummy
It would be interesting to know why this doesn't work.
Breaking the string up into an array and setting textbox.Lines worked fine though.
Thanks alot! really helpful
Sara Hentzel
Hi,
when serializing text to Xml, line breaks are always serialized as line feed characters (\n). [see http://www.w3.org/TR/2004/REC-xml-20040204/#sec-common-syn].
The other way you're asking would look something like:
textBox1.Lines = myDeserializedText.Split('\n');
Andrej