窗体程序捕捉异常的通用简便方法不用到处添加try-catch
摘要:
static class Program {/// /// 应用程序的主入口点。/// [STAThread]static void Main() {Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);A 阅读全文
posted @ 2014-01-14 10:08 爱在屋檐下 阅读(434) 评论(0) 推荐(0)
浙公网安备 33010602011771号