title: Open new forms in C++ Windows Forms Application
body: <p>I'm using visual studio 2012 to work with windows form in C++. I've gotten help from this link <a href="https://stackoverflow.com/questions/32404247/cant-find-windows-forms-application-for-c">Can&#39;t find Windows Forms Application for C++</a></p>
  
  <p>I want to have multiple forms. I've designed Form2 and included Form2.h into Form1.h . But when I open form2, it appears and fades immediately.
  This is my code:</p>
  
  <pre><code>#include "Form2.h"
  ...
  
  private: System::void button_Click(System::Object^ sender, System::EventArgs^ e){
      Form2 frm2;
      frm2.Show();
      //this-&gt;Hide();
      //this-&gt;Close();
  }
  </code></pre>
  
  <p>If i use</p>
  
  <pre><code>this-&gt;Hide();
  </code></pre>
  
  <p>the two forms will hide, and if I close form1</p>
  
  <pre><code>this-&gt;Close();
  </code></pre>
  
  <p>the form2 will close too.</p>
  
  <p>I want to open and close forms independent. What must I do?</p>
  
  <p>Any help would be appreciated</p>