please help me,
how to change Title font color blue, remaining Description and Link fonts are normal in the below code using C#.
rtb.Text += "Title: "+ rssChannel.GetString("title") + " \r\n";
rtb.Text += "Description: " + rssChannel.GetString("description") + "\r\n";
rtb.Text += "Link: " + rssChannel.GetString("link") + "\r\n";
With Warm Regards
Sujit
Phone +91 9935433006(India)
Loading

Jean PaulPosted Feb 4, 2011, 3:32 AM
// Set title style
rtb.SelectionColor = Color.Blue;
rtb.SelectionFont = new Font("Calibri", 12, FontStyle.Bold);
rtb.SelectedText += "Title: " + rssChannel.GetString("title") + " \r\n";
// Set remaining style
rtb.SelectionColor = Color.Black;
rtb.SelectionFont = new Font("Calibri", 10, FontStyle.Regular);
rtb.SelectedText += "Description: " + rssChannel.GetString("description") + "\r\n";
rtb.SelectionColor = Color.Black;
rtb.SelectionFont = new Font("Calibri", 10, FontStyle.Regular);
rtb.SelectedText += "Link: " + rssChannel.GetString("link") + "\r\n";