title: Is it possible to use TextRenderingHint to get anti-aliasing on a RichTextBox?
body: <p>I've been experimenting with enabling anti-aliasing of text in various controls in a Windows Forms Application.</p>
  
  <p>I did a bit of research and it seems like the solution is to create a custom control and to override <code>OnPaint()</code> to modify the <code>TextRenderingHint</code>. I have used this approach successfully on <code>Label</code> and <code>Button</code> controls, but it appears not to work for <code>TextBox</code> or <code>RichTextBox</code> controls.</p>
  
  <p>Here is the code I am using to enable anti-aliasing in a custom <code>Label</code> control:</p>
  
  <pre><code>public partial class CustomLabel : Label
  {
      private System.Drawing.Text.TextRenderingHint _hint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
      public System.Drawing.Text.TextRenderingHint TextRenderingHint
      {
          get { return this._hint; }
          set { this._hint = value; }
      }
  
      protected override void OnPaint(PaintEventArgs pe)
      {
          pe.Graphics.TextRenderingHint = TextRenderingHint;
          base.OnPaint(pe);
      }
  }
  </code></pre>
  
  <p>Using the same approach for a <code>TextBox</code> or a <code>RichTextBox</code> does not appear to work.</p>
  
  <p>The application I'm creating deals primarily with text input and I would really like to use anti-aliasing for all of the displayed text, especially text being typed into a TextBox or RichTextBox or a custom control. </p>