Question: How to have timer "remember" variables?

  • Thread starter Thread starter VB Programmer
  • Start date Start date
V

VB Programmer

I am dynamically creating x amout of timers (using System.Timers.Timer). I
want each timer to remember it's own set of variables (ex:
CustomerBeingProcessed, LastProcessTime, etc...) How can I do this?
 
VB Programmer said:
I am dynamically creating x amout of timers (using
System.Timers.Timer). I want each timer to remember it's own set of
variables (ex: CustomerBeingProcessed, LastProcessTime, etc...) How
can I do this?

Derive your own class from System.Timers.Timer and add the mentioned
fields/properties and the handler to the class.
 
Back
Top