
Create Simple Window Service
Open Visual Studio 10 go to File > New > Project, open a dialog box and new project as a “Window Service” and on OK button.
After created project you can see service design page like below and click on link “click here to switch to code view”
Solution Explorer look...