Nikolay,
If the service has to be running (so it can respond to your events) I would
probably use System.Threading.Timer to have a method start executing at a
specific time from now. Other wise I would consider using a Scheduled Task
under Windows Control Panel.
For the service to respond to "events" in your other programs, largely
depends on how your other apps are going to "raise the event".
You could use Remoting where your apps call into an object offered by your
Service when an "event" occurs.
Your apps could use ServiceController.ExecuteCommand to send your service an
integer that represents the "event".
I believe you could also have your other apps use the
System.Management.Instrumentation namespace to raise "events" that your
service would monitor for...
You could use TCP/IP...
You could use System.Messaging namespace.
I'm sure there are other options available, it really depends on the kind of
"events" we are talking, and what you expect to do with them...
Hope this helps
Jay
"Nikolay Petrov" <jo**************@mail.bg> wrote in message
news:uM**************@TK2MSFTNGP15.phx.gbl...
I am going to write a windows service and i need some info.
How is the right way to make it do thing as specified time?
Should I use a timer, which checks the time and execute what it have to,
or there is some other way?
Also I want my service to respond to events, generated from other software
(my own apps). How this can be accomplished?