title: How do I add form on tab control in c#
body: <p>I have a form page with text boxes and data grid view and other forms that contain a tab control. I want to add the first form tab in the second form. I tried to write the code for the form to appear but it is larger than the tab container and doesn't fit. Only half of the form appears. </p>
  
  <p>This is my code:</p>
  
  <pre><code>private void tcMainPage_SelectedIndexChanged(object sender, EventArgs e)
  {
        if (tcMainPage.SelectedIndex == 0)
        {
            GTOWN.PrintingPage BookInfo = new PrintingPage();
            BookInfo.TopLevel = false;
            BookInfo.FormBorderStyle = FormBorderStyle.None;
            BookInfo.Dock = DockStyle.Fill;
            tpSearch.Controls.Add(BookInfo);
            BookInfo.Show();
         }    
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/yxs5H.png" rel="nofollow noreferrer">this is the form</a></p>
  
  <p><a href="https://i.stack.imgur.com/SV6se.png" rel="nofollow noreferrer">and that is what appears</a></p>