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