private void userstxt_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
SendKeys.Send("{TAB}+{HOME}");
}
}
转载于:https://www.cnblogs.com/yinluhui0229/archive/2012/07/09/2583822.html