RichEdit - RTF not working properly

I'm trying to get the RichEdit component to display formatted text. It
appears as it should before I run the program but once run it loses alot of
the formatting(bold etc.)

Thanks in advance.
SCott.