计时器问题 [英] problem with the Timer

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

问题描述

对于通过串行端口连接到调制解调器的mon应用程序,我有一个RichtextBox,它可显示使用计数器(以毫秒为单位,Iam使用计时器)发送/接收的数据.

For mon application which connect to a modem by the serial port,I have a RichtextBox which display data sent/received with a counter in millisecond,Iam using a timer.

在我的应用程序启动时,计时器正常工作,但是几分钟后,它变得很慢,所以我得到了错误的持续时间数据.我试图将timer.interval设置为1,但没有任何改善.

In start of my application the timer work normally, but after some minutes it become very slow,so I obtain a wrong data of trame duration. I tried to put the timer.interval to 1 but no improvement.

我问是否有办法每秒刷新一次计时器或类似的东西.

Iam asking if there is a way to refresh the timer every seconde or some thing like that.

或者vb.net中是否还有其他计时器

Or if there are other kind of timers in vb.net

提前谢谢

推荐答案

我要问是否有办法每秒刷新计时器"

"Iam asking if there is a way to refresh the timer every seconde"

将时间间隔设置为1000.

Set the interval to 1000.


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

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