C如何捕获异常和处理异常.docVIP

  • 3
  • 0
  • 约2.15千字
  • 约 3页
  • 2017-06-08 发布于重庆
  • 举报
C如何捕获异常和处理异常

using System; using System.Collections.Generic; using System.Windows.Forms; using System.Threading; using System.Diagnostics; using System.Runtime.InteropServices; using System.Reflection; namespace WindowsApplication2 static class Program /// /// 应用程序的主入口点。 /// [STAThread] static void Main Application.ThreadException + new System.Threading.ThreadExceptionEventHandler Application_ThreadException ; // AppDomain.CurrentDomain.UnhandledException + new UnhandledExceptionEventHandler CurrentDomain_UnhandledException ; Application.EnableVisualStyles ; Application.SetCompatibleTextRenderingDefaul

文档评论(0)

1亿VIP精品文档

相关文档