title: Load Panel from Another Form
body: <p>I created 2 Forms, Form1 with a Panel, and Form2 with a Panel. On Form2 I want to design the controls, which then I load within Form1 dynamicly. The idea is that I can design with VS any amount of forms, but then use those panels inside the forms to load into Form1 dynamically.</p>
  
  <p>Trouble is, form2 uses a Dataset + Databind, which then stops working when loaded into the Form1.</p>
  
  <p>Method I tried within Form1:</p>
  
  <pre><code>        From2 from2 = new Form2();
  
          for (int i = 0; i &lt; cf.Form2.Controls.Count; i++)
          {
              panel1.Controls.Add(cf.Form2.Controls[i]);
          }
  </code></pre>