ProcessDialogKey 方法实现回车自动换行
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);
}