Vittorio,
In addition to the other comments:
Which Timer object (.NET has 3 timer objects)?
It appears that only the System.Timers.T imer object has an Elapsed event, as
Herfried stated, this Timer does not allow others to raise its events. The
normal patterns is to have an overridable protected OnElapsed method that
derived objects can call to raise the event.
In addition to considering the other suggestions, I would consider creating
a new class that encapsulates the Timer, this new class would have its own
Elapsed event, this new class would handle the Timer.Elapsed event, raising
its own Elapsed event, plus it would have a public method allowing other
objects to raise its Elapsed event. I would only really consider creating
this new class, if I wanted or needed to have multiple handlers of a single
Timer's Elapsed event, making calling the handler or a common procedure
"messy".
Hope this helps
Jay
"Vittorio Pavesi" <n@spam.net> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Hello,
is it possible to manually raise the event Elapsed of the timer object ?
Vittorio