在Winforms中每运行一个'5'分钟运行一个backgroundworker进程
我有一个Winforms应用程序,我想每5分钟运行一次后台工作进程。我正在使用.Net 4.0。在Winforms中每运行一个'5'分钟运行一个backgroundworker进程
'BackgoundWorker'组件可以吗? ?
回答:
u可以使用C#定时器--->
DispatcherTimer dispatcherTimer = new DispatcherTimer(); dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
TimeSpan interval = TimeSpan.FromMinutes(5);
dispatcherTimer.Interval = interval;
dispatcherTimer.Start();
以上是 在Winforms中每运行一个'5'分钟运行一个backgroundworker进程 的全部内容, 来源链接: utcz.com/qa/265882.html