System.Timers.Timer:
Generates recurring events in an application.http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemtimerstimerclasstopic.aspSystem.Threading.Timer:
Provides a mechanism for executing methods at specified intervals. This class cannot be inherited.http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/cpref_start.asp这里有个例子,The main thread does nothing until the timer is disposed

解决方案 »

  1.   

    System.Windows.Forms:Implements a timer that raises an event at user-defined intervals. This timer is optimized for use in Windows Forms applications and must be used in a window.http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/cpref_start.asp
      

  2.   

    System.Windows.Forms.Timer是应用于WinForm中的,它是通过Windows消息机制实现的,类似于VB或Delphi中的Timer控件,内部使用API SetTimer实现的。它的主要缺点是计时不精确,而且必须有消息循环,Console Application无法使用。System.Timers.Timer和System.Threading.Timer非常类似,它们是通过.NET Thread Pool实现的,轻量,计时精确,对应用程序、消息没有特别的要求。System.Timers.Timer还可以应用于WinForm,完全取代上面的Timer控件。它们的缺点是不支持直接的拖放,需要手工编码。