Show Error Message on Unhandled Exception

May 9, 2012 at 9:59 PM

Hello,

 Whats the best way to accomplish following 2 things in the application-

 

1) Show error message OnUnhandledException method in boostrapper and then shut down the application.

 

2) Check for certain pre-conditions in OnStartup method in bootstrapper and if those fail, show error message. The application should shut down after user click OK in the messagebox.

 

Any help on these 2 tasks is highly appreciated!!

Thanks

 

Apurva