Read in RTF into a RichTextBox control and save it to a RTF file

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

Yuelin

Hi there

How can I read a RTF file into a RichTextBox control without the original
format being lost? And how can I
save the text entered in a RichTextBox into a RTF file without the original
format being lost? It seems I can't use
System.IO.StreamReader. Is there any thing I can use to do this?

Many thanks

Yuelin
 
Have you tried the RTF box's 'SaveFile' or 'LoadFile' methods? If format is
lost using these commands, then the RTF box does not support your 'original
format'.

-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