title: C# winform, How to create a form ContainerControl?
body: <p>Recently I have been researching on how to make your own control. And I have asked in the past (2 days ago) about a Tab Control issue that I am having. Well now I want to create a ContainerControl. Something like the form in the MetroFramework because I want to develop my own custom looking form. So fair this is what I have of the form. </p>
  
  <p><img src="https://i.stack.imgur.com/I5pcM.png" alt="Form Picture"></p>
  
  <p>now the problem that I am having is that this is made inside of the form. There isn't a ContainerControl where I just type in like 1 line of code and my form will look like that. In this solution I will need to type in about 30 lines. So when I mean by container control, you change the form object in the form.cs coding and it will change the design of the form.</p>
  
  <p>Example for metro framework.</p>
  
  <pre><code>public partial class Form1 : MetroFramework.Forms.MetroForm
  </code></pre>
  
  <p>Now if I wanted to create a custom form like the one in the picture. I don't want to add 30 - 50 lines of code per form to do that. I just want to make one form class and then add where the "MetroFramework.Forms.MetroForm" is and replace it with my form. For example</p>
  
  <pre><code>public partial class Form1 : MyFormExampleNamespace.MyForm
  </code></pre>
  
  <p>And this is what the regular c# winform class structure looks like</p>
  
  <pre><code>public partial class Form1 : Form
  </code></pre>
  
  <p>So now that I explained what I want, define what I think a form ContainerControl is, and what I want. How could I accomplish my goal? How would I make a ContainerControl. This is what I have tried before</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  
  namespace GoatUserControls
  {
  
  public class GoatForm : Form
  {
  
      public GoatForm()
      {
          this.FormBorderStyle = FormBorderStyle.Fixed3D;
          base.FormBorderStyle = FormBorderStyle.Fixed3D;
      }
  
      private void InitializeComponent()
      {
          this.SuspendLayout();
          // 
          // GoatForm
          // 
          this.ClientSize = new System.Drawing.Size(284, 261);
          this.Name = "GoatForm";
          this.Load += new System.EventHandler(this.GoatForm_Load);
          this.ResumeLayout(false);
  
      }
  
      private void GoatForm_Load(object sender, EventArgs e)
      {
  
      }
  
      //protected override BorderStyle()
      //  {
  
      //  }
  
  }
  
  }
  </code></pre>
  
  <p>And this is what I have in the main form</p>
  
  <pre><code>public partial class Form1 : GoatUserControls.GoatForm
  </code></pre>
  
  <p>So how would I make a form ContainerControl?</p>