So I need to be able to close a window when I open another window... Here is my code:
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e)
{
Form2 ^form2 = gcnew Form2();
form2->Show();
Form1->Close();
}
All this does is close both windows... If you guys could help out a noob to C++ that would be greatly appreciated... Thank you!