0

我有一个 Winforms 应用程序,我想在其中每 5 分钟运行一次后台工作进程。我正在使用.Net 4.0。

'BackgoundWorker' 组件可以做到这一点吗?

4

1 回答 1

1

你可以使用 C# 定时器--->

DispatcherTimer dispatcherTimer = new DispatcherTimer();
dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
TimeSpan interval = TimeSpan.FromMinutes(5);
dispatcherTimer.Interval = interval;
dispatcherTimer.Start();
于 2013-05-28T05:46:32.140 回答