form的 keypreview设为true
private void SmtpForm_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
   if (e.KeyChar==(char)13)
   {
   
      this.SelectNextControl(this.ActiveControl,true,true,false,true);
   }
}