"SystemEvents.CreateTimer"创建一个与系统事件窗口关联的新窗口计时器. [英] "SystemEvents.CreateTimer" Creates a new window timer associated with the system events window.

查看:91
本文介绍了"SystemEvents.CreateTimer"创建一个与系统事件窗口关联的新窗口计时器.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

"SystemEvents.CreateTimer"

创建一个与系统事件窗口关联的新窗口计时器.

链接 [ [

Hai all,

"SystemEvents.CreateTimer"

Creates a new window timer associated with the system events window.

Got this from a Link[^]..

But it is not clear for me.. What they meant by.. "window timer"..?

推荐答案

这是什么:窗口计时器是一个计时器与系统事件窗口关联. (有很多不同的计时器,仅此而已.例如,多媒体计时器,还有其他一些计时器).我不知道您为什么需要此计时器.

.NET中有两个标准计时器,一个是非标准计时器System.Windows.Forms.Timer,我只建议将其用于不需要精度的简单任务.

在所有情况下,我都建议两个:System.Threading.TimerSystem.Timers.Timer.它们是便携式的,因此不仅可以在Windows上使用,而且可以在Mono支持的其他系统上使用.参见:
http://msdn.microsoft.com/en-us/library/system.timers. timer.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/system.threading. timer.aspx [^ ].

使用正确的计时器,不必担心,然后开始编程.

—SA
This is what it is: Window timer is a timer associated with the system events window. (There are many different timers, that''s it. For example, multimedia timer, and a few more) I have no idea why would you need this.

There are two standard timers in .NET and one non-standard one, System.Windows.Forms.Timer, which I would recommend only for simple tasks not requiring accuracy.

The two I would recommend in all cases are: System.Threading.Timer and System.Timers.Timer. They a portable, so can be used not just on Windows, but on other systems supported by Mono. See:
http://msdn.microsoft.com/en-us/library/system.timers.timer.aspx[^],
http://msdn.microsoft.com/en-us/library/system.threading.timer.aspx[^].

Use right timers, stop worrying and start programming.

—SA


这篇关于"SystemEvents.CreateTimer"创建一个与系统事件窗口关联的新窗口计时器.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆