Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
My Windows Form application has two forms. Form1 and Form2. How to close entire application after the Form2 is closed?
Form1
Form2
When I close Form2 it only closes that form.
Try to call Application::Exit();
Application::Exit();
See the reference.