title: WinForms Custom Control Colors
body: <p>I am trying to customize the controls on my WinForms database application.</p>
  
  <p>So far I have only tried to customize labels and buttons using the following code:</p>
  
  <pre><code>namespace MyNamespace
  {
    public class CMSLabel : Label
    {
      private Color cmsLabelBackColor = aSystem.LabelBackColor;
  
      public CMSLabel()
      {
          this.BackColor = cmsLabelBackColor;            
      } 
  
      [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  
      public new Color BackColor
      {
          get { return cmsLabelBackColor; }
          set { }
      }
    }
  
    public class CMSButton : Button
    {
      private Color cmsButtonColor = aSystem.ButtonColor;
  
      public CMSButton()
      {            
          base.BackColor = cmsButtonColor;
      }
  
      [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  
      public new Color BackColor
      {
          get { return cmsButtonColor; }
          set { }
      }
    }
  }
  </code></pre>
  
  <p>The Button control works perfectly, but the Label controls exhibit no BackColor at all, yet I've used the same code for each control type.  Can anyone spot what I have done wrong?</p>