Home
Manage Your Code
Snippet: Exception handling inititlization (C#)
Title: Exception handling inititlization Language: C#
Description: Exception handling inititlization Views: 152
Author: x y Date Added: 5/27/2008
Copy Code  
1            Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
2            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(ExceptionHandler);
3            Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException);
4