Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
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
Posted
Updated 19-Dec-10 20:37pm
Comments
Abhinav S 20-Dec-10 2:37am    
Minor capilization corrected.
Toli Cuturicu 20-Dec-10 16:26pm    
Why?

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).
 
Share this answer
 
It's array.
Timer[] myTimers = new Timer[]{
 new Timer(),
};

and so on.
Not sure what you trying to archive, but, timer isn't answer.
Check for:
BackgroundWorker,
Thread,
ThreadPool as alternatives.
 
Share this answer
 
v2
Comments
Toniyo Jackson 20-Dec-10 4:21am    
Write your code inside the code block.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900