ServiceController??

  • Thread starter Thread starter Cory J. Laidlaw, Beyond01.com
  • Start date Start date
C

Cory J. Laidlaw, Beyond01.com

Howdy!

I am trying to write an application that will control some services I am
writing.

However, in VS 2008 (VB) I don't appear to have the system.serviceprocess
namespace.

Am i nuts? Thanks for any help!
 
"Cory J. Laidlaw, Beyond01.com"
However, in VS 2008 (VB) I don't appear to have the system.serviceprocess
namespace.

Make sure your project contains a reference to "System.ServiceProcess.dll".
 
Howdy!

I am trying to write an application that will control some services I am
writing.

However, in VS 2008 (VB) I don't appear to have the system.serviceprocess
namespace.

Am i nuts? Thanks for any help!

Additionaly, look at your toolbox, ServiceController component should
be available there. Drop it onto your form if it's a Winform project.
Then associate a service for that component to use, and you're ready
to use it, eg: with Start method.

Also:
http://www.ondotnet.com/pub/a/dotnet/2003/08/18/winservices.html?page=3

Hope this helps,

Onur Güzel
 
Back
Top