RichTextBox problem - lost background

  • Thread starter Thread starter Yuelin
  • Start date Start date
Y

Yuelin

Hi,

thanks Noah for your advice.

I wrote following to read a rich text file into a RichTextBox control:

this.m_textBox.LoadFile(openFileDialog1.FileName,
RichTextBoxStreamType.RichText);

I created a RTF file in Word, and gave the background yellow. But when open
the file
in the RichTextBox control the background becomes white instead of yellow.

Can anyone tell me what is the problem? Many thanks


Yuelin
 
Glad it was of help. Simply put, the RichTextBox control doesn't support
that formatting element. It is unfortunate...

-Noah Coad
Microsoft MVP & MCP [.NET/C#]
 
Back
Top