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);
}