PC休眠后C#定时器故障? [英] C# timer malfunctions after PC hibernates?

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

问题描述

我有一个计时器,每当圆周时间(下午3点,下午4点,下午5点)显示一个表格,在PC休眠后,它不再显示在圆形时间......



第一次计时器需要花费多少时间到下一个小时,之后每次花费60分钟......

i have a timer that shows a form every time a round hour passes ( 3 PM, 4 PM, 5 PM), after PC hibernates, it shows not on round hours anymore...

the first time the timer takes how much time left to the next hour, and takes 60 minutes each time afterwards...

推荐答案

将计时器 tick()降低到5-15秒(甚至60秒)并检查 DateTime 是否在最重要的时刻。
Lower your timer tick() to 5-15 seconds (or even 60 seconds) and check if the DateTime at the top of the hour.


这篇关于PC休眠后C#定时器故障?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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