title: Extend a System.Windows.Forms.Button and change default Text in c#
body: <p>I have created a custom control button by extending the System.Windows.Forms.Button class.</p>
  
  <p>I have set the default .Text .Width and .Height in the constructor of the new class.</p>
  
  <p>When I drop this control onto a form, the IDE is smart enough to pay attention to the Width and Height specified in the constructor and assign these properties to the new button being created, but it ignores the Text property, and assignes the .Text of the button to be "ucButtonConsumables1"</p>
  
  <p>Is there a way to set the .Text to a default value of my choosing?</p>
  
  <pre><code>public partial class ucButtonConsumables : System.Windows.Forms.Button {
      public ucButtonConsumables() {
  
          this.Text = "Consumables";                   
          this.Width = 184;
          this.Height = 23;
  
          this.Click += new EventHandler(ucButtonConsumables_Click);
  
      }
  
      void ucButtonConsumables_Click(object sender, EventArgs e) {
  
          MessageBox.Show("Button Clicked")
  
      }
  
  }
  </code></pre>