摘要:
一、重写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; } 阅读全文