if (richTextBox1.SelectedRtf.IndexOf(@"{\pict") > -)
{
Text = "Img";
}
else
{
Text = "Form1";
}
05-03 20:41