posted by Will Senn on Mon 5th Jan 2004 19:35 UTC
"Windows .NET Services, Page 2"
Details
1. Create a Project
a. Click the IDE menu item: File-New-Project
or just click the New Project button from the Start Page
the New Project dialog will pop up.
b. Select Visual C# Projects.
c. Select Windows Service from the Templates window.
d. Type a descriptive name into the Name field, something like timedService.
e. Change the location if you don't like it (optional).
f. Click OK.
2. Browse the Autogenerated Code
The IDE will autogenerate some code and drop you into Service1.cs [Design] view.

To look at the generated code, right click the window and select - View Code. I highly recommend you at least skim the autogenerated code.

When you think you've seen enough, Click back to Service1.cs [Design] view.
3. Rename the .cs File
First, let's change the name of the .cs file to something more applicable. To do this, find the Solution Explorer - usually the top right window. If you cannot see the window anywhere, click the IDE menu item: View-Solution Explorer.
a. Expand the timedService Project(or whatever you named your project)
b. Right Click on Service1.cs
c. Click Rename
d. Name it something like timedService.cs

You will notice that the design view tab now shows timedService.cs [Design] and, if you look at the source code again, that the namespace is timedService.

Table of contents
- "Windows .NET Services, Page 1"
- "Windows .NET Services, Page 2"
- "Windows .NET Services, Page 3"
- "Windows .NET Services, Page 4"
- "Windows .NET Services, Page 5"
Related Articles
posted by Thom Holwerda on Fri 13th Jun 2008 18:09, submitted by wakeupneo
posted by Thom Holwerda on Mon 7th Apr 2008 20:38
posted by Thom Holwerda on Fri 22nd Feb 2008 09:16, submitted by obsethryl






