2012年9月12日
摘要: catch (Exception ex) { Debug.WriteLine(ex.Message); } 阅读全文
posted @ 2012-09-12 09:49 武胜-阿伟 阅读(190) 评论(0) 推荐(0) 编辑
摘要: using System.Drawing;[Flags] private enum MouseEventFlags { LEFTDOWN = 0x00000002, LEFTUP = 0x00000004, MIDDLEDOWN = 0x00000020, MIDDLEUP = 0x00000040, MOVE = 0x00000001, ABSOLUTE = 0x00008000, RIGHTDOWN = 0x00000008, RIGHTUP = 0x00000010 } [Flags] private enum Win32Consts { INPUT_MOUSE = 0, INPUT_K 阅读全文
posted @ 2012-09-12 09:44 武胜-阿伟 阅读(255) 评论(0) 推荐(0) 编辑
摘要: private delegate object GetButtonTagDelegate(ref Button b);private object GetButtonTag(ref Button b) { if (InvokeRequired) { return Invoke(new GetButtonTagDelegate(GetButtonTag), new object[] {b}); } return b.Tag; }private delegate int GetComboBoxSelectedIndexDelegate(ref ComboBox cb);private int Ge 阅读全文
posted @ 2012-09-12 08:58 武胜-阿伟 阅读(643) 评论(0) 推荐(0) 编辑