Thanks C# Learner, got it.
Juan.
"C# Learner" <(E-Mail Removed)> escribió en el mensaje
news:#(E-Mail Removed)...
> Juan wrote:
>
> > I`m inserting strings in a rich text control using the AppendText
method, I
> > would like to change certain parts of the string so, for example, a
certain
> > word appears bold and red when inserted. Is it possible using this
control?
>
> Yes, here's an example:
>
> richTextBox.SelectionStart = richTextBox.TextLength;
> richTextBox.SelectionColor = Color.Red;
> richTextBox.SelectedText = "Red text." + Environment.NewLine;
> richTextBox.SelectionColor = Color.Blue;
> richTextBox.SelectedText = "Blue text."
|