摘要: 时间:2012年5月25日 11:11:01目的:定时间隔执行一些操作类型:Windows 服务今日创建Windows 服务时间间隔操作时,遇到了Timer 不执行,郁闷了。然后进行了查阅一番。原来Windows服务项目里:System.Windows.Forms.Timer 控件是不会执行的。最后改成了:System.Threading.Timer问题ok了。改用:System.Threading.Timer也是ok的。在.net里有三种Timer,而且这三种timer的命名空间都不一样.分别如下:一类是定时触发事件:1.System.Windows.Forms.Timer使用地方:Wind 阅读全文
posted @ 2012-06-25 10:55 po~饭盒 阅读(2075) 评论(2) 推荐(4) 编辑