Glenn Patton

Glenn Patton

  • NA
  • 308
  • 83.1k

Application.Exit() acting odd

Jul 9 2012 11:37 AM
Hi All,

I have written a bit of code to check driver versions and would like to have it installed and run first from an installer. Once the code has executed it should exit as 
            MessageBox.Show("Version of driver is " + Version_Number, "", MessageBoxButtons.OK, MessageBoxIcon.Information);

            Application.Exit();        

It displays a messagebox and should end with Application.Exit() except it does not. it loads the form and waits for a button click at which it displays the message box again and then exits.
My question is how to get the program to end after the message box has been shown? (ideally with the form invisible). 
Glenn



Answers (7)