原来一直是为每个文本框的KeyPress增加: if(e.KeyChar = '/r') SendKeys.Send("{TAB}"); 最近想想,其实有更简单的方法,把Form的KeyPreView设为true,然后在Form的KeyPress中增加下列代码即可: if (e.KeyChar == '/r') this.SelectNextControl(this.ActiveControl, true, true, true, true);
回车转Tab
最新推荐文章于 2024-05-28 15:47:14 发布
1502

被折叠的 条评论
为什么被折叠?



