I'm trying to color parts of a string to be appended to a RichTextBox. I have a string built from different strings.
string temp = "[" + DateTime.Now.ToShortTimeString() + "] " + userid + " " + message +
Environment.NewLine;
This is what the message would look like once it is constructed.
[9:23pm] User: my message here.
I want everything within including the brackets [9:23] to be one color, 'user' to be another color and the message to be another color. Then the string appended to my RichTextBox.
How can I accomplish this?