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#]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top