回车转Tab

把Form的KeyPreView设为true,然后在Form的KeyPress中增加下列代码即可:

if (e.KeyChar == '\r')
this.SelectNextControl(this.ActiveControl, true, true, true, true);

posted @ 2015-10-30 19:21  gobuild  阅读(134)  评论(0编辑  收藏  举报