摘要: 已解决问题] System.Timers.Timer 多线程 ,同时首次进 声明: System.Timers.Timertimer=newSystem.Timers.Timer(); timer.Elapsed+=newElapsedEventHandler(timer_Elapsed); button按钮事件: timer.AutoReset=true; timer.Interval=15; ... 阅读全文
posted @ 2009-09-29 17:54 awp110 阅读(878) 评论(1) 推荐(1)
摘要: ///定时器///C#提供了3个类可以实现定时器///System.Timers.Timer///在实现中使用线程池中的线程去执行任务。与使用线程池一样,必须在访问任务所用到的资源时,对线程进行同步///Interval{get;set}属性 可以设置精度为毫秒的执行时间///Start() 开始定时器///Stop() 关闭定时器///Enabled{get;set;} 设置定时器的活动状态//... 阅读全文
posted @ 2009-09-29 17:45 awp110 阅读(658) 评论(0) 推荐(0)
摘要: System.Timers.Timer的使用2008年11月04日 星期二 05:26 P.M.using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Timers; namespace ConsoleApplication1 { class Program... 阅读全文
posted @ 2009-09-29 16:59 awp110 阅读(333) 评论(0) 推荐(0)