title: move from form to user control
body: <p>I have a bunch of Forms that I embed in tabpages(<em>some are embedded two and three layers deep</em>) that I now suspect are giving me trouble.  I have been told that User Control's are the better approach.  </p>
  
  <ul>
  <li><p>Now I am wondering how I
  canaccomplish this as quick as
  possible.</p></li>
  <li><p>Is it as simple as copy and paste?</p></li>
  <li>Has anyone ever done something like
  this?</li>
  </ul>
  
  <p>I have about 40 forms that I embedd that would need to be moved and not a lot of time to do it so any help is greatly appreciated.</p>
  
  <h2>EDIT 1</h2>
  
  <p>This is how I embed forms:</p>
  
  <pre><code>        public static void ShowFormInContainerControl(Control ctl, Form frm)
      {
          frm.TopLevel = false;
          frm.FormBorderStyle = FormBorderStyle.None;
          frm.Dock = DockStyle.Fill;
          frm.Visible = true;
          ctl.Controls.Add(frm);
      }
  
          public static void DockControl(this Control control, UserControl userControl)
      {
          userControl.Dock = DockStyle.Fill;
          control.Controls.Clear();
          control.Controls.Add(userControl);
      }
  </code></pre>