7
Answers

Application.Exit() acting odd

Glenn Patton

Glenn Patton

12y
950
1
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)