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