Timer Objects in Windows Services with C#.NET - Setting up the Project
(Page 2 of 5 )
1. Create a C# Windows Service project and name it TimerSrv.

The project will come with a class, Service1.cs. Double-click Service1.cs in the project explorer to reveal the properties. Name the service TimerSrv and in the ServiceName field also fill in TimerSrv.

2. Next we are going to add an installer to the project. Click on the hyperlink Add Installer. A design screen will be added to the project with 2 controls: serviceProcessInstaller1 and ServiceInstaller1.
3. Click the serviceProcessInstaller1 control and, in the properties dialog, change the account to LocalSystem.

4. In the serviceInstaller control, change the start type to Automatic, and give it a nice display name, like Timer Service.

Next: Adding Code >>
More C# Articles
More By Rogier Doekes
|
| · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | | |
|