AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
和Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException); 可以的,谢谢各位了,结贴。
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
和Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException);试过都不行的。不知道你说的是否同一个方法。