title: C# Rich Text Box Tags
body: <p>I have a richtext box which will load text from a server. From the server side I want add formatting tags which will be generated textbox. 
  For example:</p>
  
  <pre><code>result = result.Replace("[b]", @"{\b ").Replace("[/b]", "}").Replace("[br]", @"{\line}").Replace("[i]", @"{\i ").Replace("[/i]", "}");
  TextBox1.Rtf = @"{\rtf1\ansi " + result + "}";
  </code></pre>
  
  <p>I can then enter:</p>
  
  <pre><code>Hello [b]this is in bold[/b] and [i] this is in [/i]
  </code></pre>
  
  <p>which will thus be replaced the required rtf1\ansi formatting and displayed with the required text in bold and italic accordingly.</p>
  
  <p>I would like to implement underline and perhaps even a set of colours.</p>
  
  <p>I've tried <code>{\u underlin }</code> but that didn't seem to work...</p>