It works for me:
private void FrmMain_Shown(object sender, EventArgs epp)
{
MyRichTextBox.Text = "Default:InRed:InBlue";
MyRichTextBox.SelectionStart = MyRichTextBox.Text.IndexOf(":") + 1;
MyRichTextBox.SelectionLength = 5;
MyRichTextBox.SelectionColor = Color.Red;
MyRichTextBox.SelectionStart = MyRichTextBox.Text.LastIndexOf(":") + 1;
MyRichTextBox.SelectionLength = 6;
MyRichTextBox.SelectionColor = Color.Blue;
}
private void MyButton_Click(object sender, EventArgs e)
{
string path = @"D:\Temp\AAARTF.rtf";
MyRichTextBox.SaveFile(path, RichTextBoxStreamType.RichText);
}
private void MyOtherButton_Click(object sender, EventArgs e)
{
string path = @"D:\Temp\AAARTF.rtf";
MyRichTextBox.LoadFile(path);
}
The file content is RTF, and it loads fine:
{\rtf1\ansi\deff0\nouicompat{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}}
{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}
{\*\generator Riched20 10.0.22000}\viewkind4\uc1
\pard\f0\fs17\lang2057 Default:\cf1 InRed\cf0 :\cf2 InBlue\cf0\par
}
So what am I doing that you aren't, or you doing that I am not?