Original post: How to access a timer from another class in C#
I tried everything.
-Event
-Invoke can't be done,because Timers don't have InvokeRequired property.
-Public/internal property
Nothing worked,the code is being executed,the timer.Enabled property is being set to "true" ,but it doesn't Tick.If I call the event or just change the property from the form class in a NON-static method - it does tick and works.
I never knew it would take me a day and probably more to acquire how to use a decent timer.
If there's no way to do this,is there anything else I can use that works similiar to the timer(delay,enable/disable)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…