如何在C#中使用轨迹栏设置定时器值 [英] How Do I Set Timer Value By Using Trackbar In C#

查看:88
本文介绍了如何在C#中使用轨迹栏设置定时器值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在win form form app中有一个timer1。它的默认值是100.



我想使用trackBar1更改timer1间隔。



我想通过跟踪栏使用100到1000的timer1值。

I have a timer1 in my win form app.Its default value is 100.

I want to use a trackBar1 to change timer1 interval.

I want to use timer1 value from 100 to 1000 through track bar.

推荐答案

不要。

使用轨迹栏影响计时器间隔倒计时的计数器:实际间隔始终保持不变(通常小于最小所需间隔)。当计数器变为零时,出现超时。
Don't.
Use the trackbar to affect a counter that the Timer interval counts down: the actual interval remains the same at all times (and normally less than the "minimum" wanted interval). When the counter gets to zero, the "time out" has occured.


这篇关于如何在C#中使用轨迹栏设置定时器值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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