Step 1: Form

GO to form "Events" there is a event "FormClosing" click on it.
Step 2: Code
Private void Form2_FormClosing(Object sender , FormClosing EventArgs e)
{
Application.Exit();
}
If you want to close your application at button click event write this code
private void btnclose_Click(object sender, EventArgs e)
{
This.close();
}
If you want to that before closing a Pop Up show that you want to close this application or not then.

Mukesh Kumar TiwariPosted Apr 29, 2014, 1:04 AM
good..