I have a winform application that can catch any number of possible errors. I have found though, that once a messagebox or some other method of displaying the error has been displayed (within a catch block), the program execution continues.

How can I simply stop complete execution of the program in this event and simply just keep the form open? It is only a one form app with a single thread.

Thanks.