Question: Referencing property in delagate function

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

VB Programmer

I have a custom timer class that I created (derived from
System.Timers.Timer). It has an extra shared property called CustomerName.

This is a portion of the code:
Dim t as New MyTimer("Bill Jones") ' send the timer the customer name
associated with this timer
AddHandler t.Elapsed, AddressOf TimerFired
t.Enabled = True

In my TimerFired code how do I access the value of the property called
"CustomerName"?

Thanks!
 
i could be wrong but why do you use a shared property ?
shouldnt that be a public property?
 
Back
Top