计时器让我疯狂 [英] Timer driving me nuts

查看:47
本文介绍了计时器让我疯狂的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我的表格上有一个计时器。问题是无论设置的间隔有多大,timer_tick事件总是被调用得非常快。我在做什么

错了?


谢谢


问候

解决方案



嘿John,

你在启动计时器后在运行时设置计时器间隔?

如果是这种情况,请在启动计时器之前设置计时器间隔。


希望它有所帮助。

John写道:





我的表格上有一个计时器。问题是无论设置的间隔有多大,timer_tick事件总是被调用得非常快。我在做什么

错了?


谢谢


问候


我已经在设计时设置了它,目前它仍然是600000.还是很快

快速几乎就像1秒。我在Timer_Tick事件中运行我的进程。


谢谢


问候


" IdleBrain" < in ************** @ yahoo.comwrote in message

news:11 **************** ****** @ i3g2000cwc.googlegro ups.com ...


>

嘿约翰,

R u在启动计时器后在运行时设置计时器间隔?

如果是这种情况,请在启动计时器之前设置计时器间隔。


希望它有所帮助。


John写道:


>嗨

我有一个我的表格上的计时器。问题是无论我设置的间隔有多大,timer_tick事件总是被调用得非常快。我在做什么
错了?

感谢

关心



你好约翰,


如果我没记错,Timer.Interval会接受一个大数字,比如

600000,但唯一有效的数字从0到32000。间隔是以毫秒为单位定义的



-Boo


我已将其设置为设计时间,目前它仍然是600000.仍然很快就像1秒一样快得多。我在

Timer_Tick事件中运行我的进程。


谢谢


问候


" IdleBrain" < in ************** @ yahoo.comwrote in message

news:11 **************** ****** @ i3g2000cwc.googlegro ups.com ...


>嘿John,
R u在运行后设置计时器间隔启动计时器?
如果是这种情况,请在启动
计时器之前设置计时器间隔。
希望它有所帮助。

John写道:


>>嗨

我的表格上有一个计时器。问题是无论我设置的间隔有多大,timer_tick事件总是被调用得非常快。我做什么
错了?
谢谢



Hi

I have a timer on my form. The problem is no matter how large an interval I
set, the timer_tick event always gets called very fast. What am I doing
wrong?

Thanks

Regards

解决方案


Hey John,
R u setting the timer interval at runtime after starting the timer?
If that is the case, set the timer interval before starting the timer.

Hope it helps.
John wrote:

Hi

I have a timer on my form. The problem is no matter how large an interval I
set, the timer_tick event always gets called very fast. What am I doing
wrong?

Thanks

Regards


I have set it at design time and it currently stands at 600000. Still too
fast almost like 1 second. I am running my process in the Timer_Tick event.

Thanks

Regards

"IdleBrain" <in**************@yahoo.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...

>
Hey John,
R u setting the timer interval at runtime after starting the timer?
If that is the case, set the timer interval before starting the timer.

Hope it helps.
John wrote:

>Hi

I have a timer on my form. The problem is no matter how large an interval
I
set, the timer_tick event always gets called very fast. What am I doing
wrong?

Thanks

Regards



Hello John,

If I remember correctly the Timer.Interval will accept a large numer, like
600000, however the only valid numbers are 0 through ~32000. Interval is
defined in milliseconds.

-Boo

I have set it at design time and it currently stands at 600000. Still
too fast almost like 1 second. I am running my process in the
Timer_Tick event.

Thanks

Regards

"IdleBrain" <in**************@yahoo.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...

>Hey John,
R u setting the timer interval at runtime after starting the timer?
If that is the case, set the timer interval before starting the
timer.
Hope it helps.

John wrote:

>>Hi

I have a timer on my form. The problem is no matter how large an
interval
I
set, the timer_tick event always gets called very fast. What am I
doing
wrong?
Thanks

Regards



这篇关于计时器让我疯狂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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