Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create windows service which should check database message for current date and should display it using windows service.
If there is any type of code forward it.
thanks in advance.
Posted

The problem is the "displaying" part. On kernel below v6, setting the service property "Allow service to interact with the desktop", made it easy to show popups from the service. But from Vista, there is a Session 0, where the services run, and you will be not able to[^] interact with the user session (if any).
Thus you have to make two projects in your solution: one service, and a client that needs to be started by the user (or automatically on logon). It will act like a client-server architecture, but on the same machine. You can use several inter-process communication approaches, but WCF[^] is a good one. The client will subscribe to the WCF service on start, and thus can receive calls[^] from service to show the message.
 
Share this answer
 
Comments
Kuthuparakkal 25-Aug-12 8:20am    
I agree with 5+
Zoltán Zörgő 25-Aug-12 12:47pm    
Thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900