摘要: 前言上篇文章我提供了一种方案可以供我们捕获单线程程序中的所有未处理异常。但是如果程序是多线程,那么新增线程出现了异常上个方案就无能为力了。本着方案总比问题多的态度,我再给大家提供一种新的方案,供大家参考。处理多线程程序的全局异常demo好了下面直接上代码:using System;using System.Collections.Generic;using System.Linq;using System.Windows.Forms;using System.Threading;namespace WindowsFormsApplication2{ static class Progra... 阅读全文
posted @ 2013-11-28 16:04 LS庆 阅读(849) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;namespace 判断是否打开Caps_Lock键{ public partial class Form1 : Form { public For... 阅读全文
posted @ 2013-11-28 15:40 LS庆 阅读(1446) 评论(0) 推荐(0) 编辑