title: How to make some text bold in a rich text box in C#
body: <p>I want to create a text editor where I can make text bold, change its color, etc.</p>
  
  <p>I found this code to approximately work:</p>
  
  <pre><code>public static void BoldSelectedText(RichTextBox control)
  {
       control.SelectionFont = new Font(control.Font.FontFamily, control.Font.Size,         FontStyle.Bold);
  }
  </code></pre>
  
  <p>But when I type in more letters in the <code>RichTextBox</code> the text is still bold.</p>
  
  <p>How can I make it so that only the selected text is bold and the next characters aren't unless I select the text and hit the "Make Bold" button?</p>