Possible Duplicate:
Loading richtextbox content from xml
I am trying to save and load the RichTextBox content from a XML file. I save the Rtf format content in my XML to include all the formatting with the data. When i try to reload the content from XML file, the RichTextBox doesn’t format the content instead it displays all the Rtf formatting code in UI.
Sample content which i try to save : Sample Text
Content displayed in RichTextBox control below:
{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Microsoft Sans Serif;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs17 Sample \\b Text\\b0\\par\r\n}\r\n
Is there any solution for this? Or suggest me some alternatives to include RichContent.
You can find more information regarding this problem from this link
Thanks In Advance,
K
// EDIT:
You can load this string from rtf file, but it will be long and not effective:
But, I really don’t get it why doesn’t my first code work for you. Because it works fine for me:

I suggest You’re doing something wrong. Can You ,maybe, attach your solution some how if it’s simple.