Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public App()
- {
- AppDomain currentDomain = AppDomain.CurrentDomain;
- currentDomain.UnhandledException += new UnhandledExceptionEventHandler(handler);
- }
- static void handler(object sender, UnhandledExceptionEventArgs args)
- {
- Exception e = (Exception)args.ExceptionObject;
- MessageBox.Show(e.Message);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement