title: Displaying a form from a dynamically loaded DLL
body: <p>This is an extension of a question I previously asked <a href="https://stackoverflow.com/questions/1087794/c-load-a-dll-file-and-access-methods-from-class-within">here</a>.</p>
  <p>Long story short, I dynamically load a DLL and make a <code>type</code> out of it with the following code:</p>
  <pre><code>Assembly assembly = Assembly.LoadFile(&quot;C:\\test.dll&quot;);
  Type type = assembly.GetType(&quot;test.dllTest&quot;);
  Activator.CreateInstance(type);
  </code></pre>
  <p>From there I can use <code>type</code> to reference virtually anything in the <code>dllTest</code> class.  The class by default when ran should bring up a form (in this case, fairly blank, so it's not complex).</p>
  <p>I feel like I'm missing a key line of code here that's keeping the form from loading on the screen.</p>
  <p><code>dllTest.cs</code> (within the DLL) consists of:</p>
  <pre><code>namespace test
  {
      public partial class dllTest : Form
      {
          public dllTest()
          {
              InitializeComponent();
          }
      }
  }
  </code></pre>
  <p><code>InitializeComponent()</code> sets up the layout of the form, which is far too long to paste here and shouldn't make a difference.</p>
  <p>Any ideas?</p>