cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to close multiple Forms in VC++ 2010
How to close multiple Forms in VC++ 2010
Oct 25, 2016 at 12:50pm UTC
Soto2K1
(1)
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
Oct 25, 2016 at 12:55pm UTC
Oct 25, 2016 at 3:32pm UTC
Thomas1965
(4571)
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.