title: form.Show in function not working when called
body: <pre><code>public static object loadForm(Form formToLoad, TabControl homeTabControl)
  {
      //Check if formToLoad parameter is NULL
      if (formToLoad == null) throw new ArgumentNullException("formToLoad");
  
      //get the parent/ownining form
      Form form1 = new Form1();
  
      //set formToLoad properties
      formToLoad = new Form
      {
          Owner = form1,
          FormBorderStyle = FormBorderStyle.None,
          TopLevel = false,
          Dock = DockStyle.Fill
      };
  
      //add formToLoad to tabControl tabPage
      homeTabControl.TabPages["tabPageHome"].Controls.Add(formToLoad);
      formToLoad.Show();
  
      return formToLoad;
  }
  </code></pre>
  
  <p>How come formToLoad does not show in the tabControl Page when i call my code from a button click?</p>
  
  <pre><code>private void button3_Click(object sender, EventArgs e)
  {
      LeaveMainForm lM = new LeaveMainForm();
      AppCode.FormLoader.loadForm(lM, homeTabControl);
  }
  </code></pre>