摘要:
System.Timers.Timer t = new System.Timers.Timer(5000); //设置时间间隔为5秒 private void Form1_Load(object sender, EventArgs e) { t.Elapsed += new System.Timers.ElapsedEventHandler(Timer_TimesUp); t.AutoReset = false; //每到指定时间Elapsed事件是触发一次(false),还是一直触发(true) } private void btnStart_Click(object sender, E.. 阅读全文