[置顶] 发现 Visual Studio中ListBox控件的BUG

摘要: 首先打开vs,(2010,08测试均存在,其他版本未测)。建一个WinFrom窗体,拖一个ListBox控件进去,然后在ListBox控件里任意N行数据。然后运行程序,双击ListBox里面任何一行,如果会发现选中项并非是你双击的那项,而是ListBox里第一个带c的数据项!如果ListBox中未存在带有c开头的数据项,则不会出现问题! 本人:QQ362710226有意者请加我QQ联系! 阅读全文
posted @ 2011-05-27 16:44 风霜雪夜 阅读(343) 评论(6) 推荐(1) 编辑

C#中使用系统热键

摘要: 1.首先引入System.Runtime.InteropServicesusing System.Runtime.InteropServices;2.在类内部声明两个API函数,它们的位置和类的成员变量等同.[System.Runtime.InteropServices.DllImport("user32.dll")] //申明API函数 public static extern bool RegisterHotKey( IntPtr hWnd, // handle to window int id, // hot key identifier uint fsModifie 阅读全文
posted @ 2011-05-25 17:37 风霜雪夜 阅读(224) 评论(0) 推荐(0) 编辑