c#.net中的计时器控件数组 [英] array of timer controls in c#.net

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

问题描述



我可以在C#.net中创建计时器控件数组,并使用它们吗?
这是Windows应用程序(C#.net3.0)

问候,
Nagaraju.N

Hi,

Can I create array of timer controls in C#.net and I work with them.
This is windows application(C#.net3.0)

Regards,
Nagaraju.N

推荐答案

是的(我不知道您要实现的目标以及这是否是实现目标的最佳方法-但是C#允许使用一个计时器数组,就像其他任何计时器一样.)
Yes you can (I dont know what you are trying to achieve and whether this is the most optimal way of doing whatever your objective is - but C# allows an array of timers much like anything else).


它是一个数组.
It''s array.
Timer[] myTimers = new Timer[]{
 new Timer(),
};


等等.
不确定要存档的内容,但是计时器无法解决.
检查:
BackgroundWorker,
线程,
ThreadPool作为替代方案.


and so on.
Not sure what you trying to archive, but, timer isn''t answer.
Check for:
BackgroundWorker,
Thread,
ThreadPool as alternatives.


这篇关于c#.net中的计时器控件数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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