Hi All
I have a GUI program with one "Exit" button. When clicking this button, it would call the Application.Exit() to close this program. Before closing the program, it also calls a confirm message box. I also implement the Closing Event for this GUI main form. In this event, it also calls a confirm message box, then calls the Application.Exit().
Now, When I just close the GUI, it would popup a confirm message box, then close it, all is fine. When I click the "Exit" Button, it would popup the confirm message box twice. I think when it call the Application.Exit(), the Closing event is invoked.
Is there any method to avoid twice confirm message box?
Best Regards,