摘要: protected override bool ProcessDialogKey(Keys keyData) { //实现回车跳到下一控件 if ((ActiveControl is TextBox || ActiveControl is ComboBox || ActiveControl is DateTimePicker) && keyData == Keys.Enter) { keyData = Keys.Tab; } return base.ProcessDialogKey(keyData); } 阅读全文
posted @ 2011-08-10 21:06 Lance Yang 阅读(368) 评论(0) 推荐(0) 编辑