0
我的代码如下:计时器不叫复读功能在我的窗口服务
protected override void OnStart(string[] args)
{
//Set the interval of timer to 5 minutes.
timer1.Interval = 300000;
//Enable the timer.
timer1.Enabled = true;
repeatFunction();
}
我打电话我timer_tick事件里面重复的功能如下:
private void timer1_Tick(object sender, EventArgs e)
{
eventLog1.WriteEntry("Timer ticked");
repeatFunction();
}
但计时器没有滴答作响。任何机构请告诉我我哪里出错了。
哪个计时器和你在哪里声明计时器? – 2010-11-23 07:53:47