System.Windows.Forms.SendKeys.Send("{TAB}"); //发送tab键 System.Windows.Forms.SendKeys.Send("%{F4}"); //alt+F4