http://community.csdn.net/Expert/topic/3045/3045499.xml?temp=.1273462

解决方案 »

  1.   

    是不是你的timer控件的enable没有设成true?
      

  2.   

    服务里不能使用控件,应该象lhx1977(清水无鱼)所说的,使用"组件"里的那个时间组件。
      

  3.   

    put code in your Service program On_Start Event
      

  4.   

    因为 Timer 控件是属于 System.Windows.Form 命名空间,服务里面是不能使用 Windows 窗体的,除非指定了服务“允许与桌面交互”。你可以试试在服务里面 MessageBox.Show("Hello, World!"); 或者创建和显示窗体,都是无效的。
      

  5.   

    .net有多个timer控件,在做windows服务的时候不能选命名空间是forms的,选择其他的timer试试,应该没有问题的