J
Jay
In my C# code, I'm attempting to display a message box then quit the win form application I'm
writing if a certain type of error occurs when the application starts up.
In the main form's constructor - FormMain() - if this error occurs, I display a message box then
call Application.Exit().
The problem is that I also need to have some code in my FormMain_FormClosing event handler, but this
prevents Application.Exit() from quitting the application. Is there another way of quiting an
application that doesn't call FormMain_FormClosing?
writing if a certain type of error occurs when the application starts up.
In the main form's constructor - FormMain() - if this error occurs, I display a message box then
call Application.Exit().
The problem is that I also need to have some code in my FormMain_FormClosing event handler, but this
prevents Application.Exit() from quitting the application. Is there another way of quiting an
application that doesn't call FormMain_FormClosing?