服务程序不能直接用工具里的timer,正确的用法如下: 工具 -> 右键 -> 选择项 -> system.timers.timer确定,然后将该Timer拖到窗体上 转载于:https://www.cnblogs.com/aoxueshenjiao/p/7799322.html