To exit the application
I need to exit the application when the user clicks the close button.but what is happening in my project is that only when the user clicks the close button of login form(which is the startup form) application exists.But when user closes other forms project is in running mode.it does not breaks....how to solve this problem..PlZ help me.......
Roei BarPosted Sep 10, 2009, 2:05 PM
on any event that you request to exit the application on your form
Kirtan PatelPosted Sep 10, 2009, 8:05 AM
Write Below Code for Every Form
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
Application.Exit();
}
Danatas GerviPosted Sep 10, 2009, 7:29 AM
Add the Application.Exit();For every FormClosed event handler. I mean - every form should implement this behavior...
Resmy RaviPosted Sep 10, 2009, 7:25 AM
Roei BarPosted Sep 10, 2009, 7:15 AM