I have an array of timers instantiated in code, say manyTimers(25) - now I would love to add a eventhandler to all those, calling the same method. I could Imagine to add the handlers by
[code]dim i as integer
for i = 0 to manyTimers.ubound // Loop through the timers
AddHandler manyTimers(i).Action, AddressOf ManyTimerAction // Add Handler
How do I know which timer fired in the method?
The Method looks as follows ATM:
Sub ManyTimerAction(sender as Timer) //Do Something End Sub
Or is there a better way to do this?