I am new to programming and having been experimenting various codes recently.
I have managed to link 2 form so that when i click a button on Form1, Form2 opens.
I am using the code
Form2^open2 = gcnew Form2(); open2->Show();
This codes work fine.
Is there a way of opening Form2 so that Form1 closes or so it replaces Form1?