title: Override Label OnPaint?
body: <p>I'm trying to override the OnPaint method of a label in my own custom control with FillPath.</p>
  
  <p>Here is my code for the control:</p>
  
  <pre><code>public partial class GlassLabel : Label
  {
      public GlassLabel()
      {
          InitializeComponent();
      }
  
      protected override void OnPaint(PaintEventArgs e)
      {
          base.OnPaint(e);
          Graphics g = this.CreateGraphics();
          GraphicsPath path = new GraphicsPath();
          SolidBrush br = new SolidBrush(Color.Black);
          path.AddString("LLOOOOLL", new FontFamily("Microsoft Sans Serif"), (int)FontStyle.Regular, 12, new Point(55, 55), StringFormat.GenericDefault);
          g.SmoothingMode = SmoothingMode.HighQuality;
          g.FillPath(br, path);
      }
  }
  </code></pre>
  
  <p>When I run it the text of the label is just the same, it doesn't draw with FillPath.</p>
  
  <p>The reason I'm trying to override the label is I want to use it on Aero glass, which needs FillPath.  If I could turn a graphics(the FillPath) in to an object so I can attach events to it, I would like info on that too.</p>
  
  <p>Thanks.</p>
  
  <p>Just tried:</p>
  
  <pre><code>e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
          e.Graphics.FillPath(br, path);
  </code></pre>
  
  <p>Didnt work.</p>