My text is in a richtextbox:
First text of parag1. Second text of parag1.
You would need to select parts of text and use SelectionColor
and SelectionFont
properties.
Everything is explained here.
Hope this helps
Now for your other question, if you mean how to change the font and color of the text inserted while the program is running, try this.
private void someTextBox_KeyPress(object sender, KeyPressEventArgs e)
{
this.someTextBox.SelectionColor = Color.Blue;
// Same goes for font and other properties
}
I don't have time to test it so I don't know how it will act with the other colors you previously set.