摘要: 在C#里关于定时器类有3个:System.Windows.Forms.Timer类、System.Threading.Timer类和System.Timers.Timer类。System.Windows.Forms.Timer是应用于WinForm中的,它是通过Windows消息机制实现的,类似于VB或Delphi中的Timer控件,内部使用API SetTimer实现的。它的主要缺点是计时不精确,而且必须有消息循环,Console Application(控制台应用程序)无法使用。System.Timers.Timer和System.Threading.Timer非常类似,它们是通过.NET 阅读全文
posted @ 2008-10-29 10:14 梦想天空(山边小溪) 阅读(3784) 评论(0) 推荐(0) 编辑