Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a Service

Status
Not open for further replies.

ChewDoggie

Programmer
Mar 14, 2005
604
US
Hi All,

Is it possible to create a Service in C#? I'm talking about a service like the ones seen in Task Manager's "Processes" tab and not a Web Service.

Currently, I've written a Window's Form app that is not visible in the task bar and starts "minimized". I have a feeling this solution is not what I want.

Thanks !

Chew

10% of your life is what happens to you. 90% of your life is how you deal with it.
 
C# is syntax, a Windows service is an OS component. there is not direct co relation between the 2. to answer your question; you can create a windows service project in VS using any .net language you like.

if you are not using VS you will need to manually reference objects within the System.ServiceProcess assembly/namespace to define the service and the System.Configuration.Install to build the service installer. there are examples online for more details.



Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Thanks, jmeckley.

Chew

10% of your life is what happens to you. 90% of your life is how you deal with it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top