C# Application.exit not working
<p>This is what I have in my btnExit_Click. It is supposed to exit the application</p>

<pre><code> this.Close();
 Program.UnLoadAllForms();
 Application.Exit();



static public void UnLoadAllForms()
        {
            try
            {
                Program.CloseReally = false;
                Program.form1.Close();
                Program.form2.Close();
                Program.form3.Close();
                Program.form4.Close();
                Program.form5.Close();
                Program.form6.Close();
                Program.form1= null;
                Program.form2= null;
                Program.form3= null;
                Program.form4= null;
                Program.form5= null;
                Program.form6= null;

            }
            catch (Exception ex)
            {
                throw ex;
            }
</code></pre>
