>>I cannot figure out inside Process() which Timer is currently processing.
erm, isn't Timer1 being processed when the case for Timer1 runs, similarly for Timer2....
Jacques Bourgeois (James Burger)
It looks like you are using a System.Windows.Forms.Timer and not a System.Timer.
In such a case, try using the Name property of the Timer instead of calling ToString.
The Name property is automatically set to the name that you give to the timer when you add it to a Windows Form in the Form Designer. But if you create the timers dynamically, it is left empty. If this is the case, then you need to assign yourself a value to the Name property after creating the timer.
jxharding
ASKER
Thank you for the replies.I checked now - it is a System.Timers.Timer (i def could have overlooked this so thanks for the advice Jacques). It does seem that other than the declaration of a timer - there is no name parameter that gets passed.
I made a custom Timer, that inherits from Timer - and then loops through all the properties and sets the custom timer properties = properties of the timer that I pass to it , + add TimerName property.
It does work, but I wonder if I'm doing it properly?
erm, isn't Timer1 being processed when the case for Timer1 runs, similarly for Timer2....