How to close multiple Forms in VC++ 2010

I know that Windows Forms is old, but it's what we have to use...

I had an assignment today in my class, I had to open a form that opens more forms, but when I press the button "Exit", it has to close everything.

I've tried with Application::Exit(); Form1::Close(); Application::ExitTherad(); but it doesn't work.
Last edited on
You need to keep a reference to the form you open, then you can use this reference to close it. If you post your code I might be able to give more advice.
Topic archived. No new replies allowed.