摘要: 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.. 阅读全文
posted @ 2013-10-30 17:12 summer0311 阅读(38753) 评论(0) 推荐(1) 编辑