I have a Build Embedded .rtf file. I use this code to read the file:

[
System.IO.StreamReader FReader =
new System.IO.StreamReader((System.Reflection.Assembly.GetExecutingAssembly().
GetManifestResourceStream("LearnAndEarn.Credits.rtf")));
string str = FReader.ReadToEnd();
FReader.Close();
DedicationRichTextBox.Text = str;
DedicationRichTextBox.Visible = true;
]

And it reads it fine. But when it displays it in the RichTextBox it shows all the formatting, too, starting with {rt\ansi\ansicpg.... Any ideas ?????????????

I propose to use

DedicationRichTextBox.Rtf = str;

instead of

DedicationRichTextBox.Text = str;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.