今天在MS的Windowsclient.net上看到有关Windows Form编程方面的FAQ列表,看了几条觉得不错,有必要都仔细看一下!!
http://windowsclient.net/blogs/faqs/default.aspx
http://windowsclient.net/blogs/faqs/default.aspx
下面罗列几条自己还不是很清楚的。
(1)
How do I catch an exception that occurs anywhere in a Windows Forms application?
You can handle the Application.ThreadException event from the System.Windows.Forms namespace. using System.Threading; [STAThread] public static void Main() { Application.ThreadException += new ThreadExceptionEventHandler( UnhandledExceptionCatcher );...