摘要: 一、重写ProcessCmdKey方法protected override bool ProcessCmdKey(ref Message msg, Keys keyData){ int WM_KEYDOWN = 256; int WM_SYSKEYDOWN = 260; if ((msg.Msg == WM_KEYDOWN) || (msg.Msg ==WM_SYSKEYDOWN)) { switch(keyData) { case System.Windows.Forms.Keys.Enter: SendKeys.Send("{Tab}"); return true; } 阅读全文
posted @ 2012-07-26 18:02 路灯下的诗人 阅读(369) 评论(0) 推荐(0) 编辑