不论在客户端应用程序还是服务器组件(包括窗口服务)定时器通常扮演一个重要的角色。
Timers often play an important role in both client applications and server-based components (including Windows services).
这个定时器类引发的定时器事件是同你的窗口应用程序的其余代码相同步的。
The timer events raised by this timer class are synchronous with respect to the rest of the code in your Windows Forms app.
如果你没有窗口或者是你不想在窗口过程中处理定时器消息,你必须在函数的窗口句柄的地方传递一空值。
If you don't have a window or you don't want to process the timer messages in the window procedure, you must pass NULL to the function in place of a window handle.
应用推荐