During the QueryUnload event I want to *stop* VB from shutting down the program.

For example. The user clicks the corner 'X'. During the QueryUnload event I prompt the user with a YesNoCancel MsgBox. If the user hit's cancel I need to stop the QueryUnload event from actually shutting down the application.

Any thoughts on how I can do this?

--Lyle E. Dodge
[email protected]