摘要:
方法有:1: if(e.KeyChar = '\r')SendKeys.Send("{TAB}");但是 也许是我程序里处理了太多的键盘事件,用它总是反映很慢,有时候还死机。这是常用的2:把Form的KeyPreView设为true,然后在Form的KeyPress中增加下列代码即可: private void Form1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\r') this.SelectNextControl(this.ActiveControl 阅读全文
posted @ 2011-10-19 11:12
金铭杰
阅读(334)
评论(0)
推荐(0)
浙公网安备 33010602011771号