title: Changing rich text box font color in loop
body: <p>This seems like it should work to me but I can't seem to figure it out</p>
  
  <pre><code>    public void ShowReport()
      {
          foreach (KeyValuePair&lt;int, ReportSet&gt; pair in ReportSets)
          {
              ReportText.Text += pair.Value.ReportSetText + Environment.NewLine;
              foreach (string message in pair.Value.ReportMessages)
              {
                  ReportText.Text += message;
                  ReportText.Select(ReportText.Text.LastIndexOf(message), message.Length);
                  ReportText.SelectionColor = pair.Value.Color;
              }
              ReportText.Text += Environment.NewLine;
          }
          this.Show();
      }
  </code></pre>
  
  <p>As is, this changes no text color. If I remove the new line after the inner loop, it will change the color of the last message only. Tried removing all of the new lines just for s's and g's but the same result. Any ideas?</p>