0

If my startform is Form1 and I will open Form2 from Form1 and press a button with this code on Form2.
Form2 will close.
Is it possible to write something here so the whole application will close wich meens both Form2 and Form1.

this->Close();
2
Contributors
2
Replies
4
Views
9 Years
Discussion Span
Last Post by Jennifer84
0

You can use the Application class from System.Windows.Forms (assuming we're talking about C++/CLI):

Application::Exit();
0

Thank you... That worked well...

You can use the Application class from System.Windows.Forms (assuming we're talking about C++/CLI):

Application::Exit();
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.