倒计时器 [英] countdown timer

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

问题描述

当试图计时器耗尽
做在C#中的倒数计时器上建立在微软的Visual Studio
最低10秒的价值,最大2小时
需要一个显示我如何实现这一点?
感谢

trying to do a countdown timer in C# on micrsoft visual studio minimum value of 10seconds, maximum of 2hours need a display when timer runs out how do i implement this? thanks

推荐答案

使用的 System.Threading.Timer ,其中你可以指定要多少时间过去,直到计时器火灾,什么代码时,计时器会被触发执行。

Use System.Threading.Timer wherein you can specify how much time should pass until the timer fires, and what code to execute when the timer does fire.

您也可以看看的 System.Windows.Forms.Timer

You can also look at the System.Windows.Forms.Timer.

对于所有的定时器类的类在.NET的比较,检查出的定时器类在.NET Framework 比较。

For a comparison of all the timer-like classes in .NET, check out Comparing the Timer Classes in the .NET Framework.

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

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