keyongtech


  keyongtech > dotnet.languages.* > dotnet.languages.vb > 11/2008

 #1  
11-28-08, 05:47 PM
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!
 #2  
11-28-08, 06:01 PM
Patrice
And what have you done sor far ? Have you tried to add a reference to
System.ServiceProcess ?
 #3  
11-28-08, 06:22 PM
Herfried K. Wagner [MVP]
"Cory J. Laidlaw, Beyond01.com"
<CoryJLaidlawBeyond01com> schrieb:
> 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".
 #4  
11-28-08, 07:28 PM
kimiraikkonen
On Nov 28, 7:47 pm, Cory J. Laidlaw, Beyond01.com
<CoryJLaidlawBeyond01> wrote:
> 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...es.html?page=3

Hope this helps,

Onur Güzel
 #5  
11-28-08, 08:58 PM
Cory J. Laidlaw, Beyond01.com
Ah, It's PURE Magic!

Thanks very much to all who responded!

Cory

"Herfried K. Wagner [MVP]" wrote:
[..]
Similar Threads
ServiceController on Vista

I have an administrative program (installed by click-once) that starts/stops a service running on the same machine. The ServiceController class can check the status of the...

Q: ServiceController

Hi! I am using a ServiceController to start and stop my service. If i use the service localy and use the service controller it works fine. If i install the service on my...

ServiceController.GetServices( other pc )

Hi, On the 1.1 framework I couldn't find a solution to get a list of services from an other PC. Only a list of services on My local PC. (witch is strange i guess, as you...

ServiceController

Dim myController As ServiceController myController = New ServiceController("myWrondName") i try : if myController is nothing then messagebox.show("This service doesn't...

Behind the scenes of ServiceController????

I want to know if ServiceController is a FULL MANAGE implementation or if is really a proxy over native api's or COM. Does anybody knows? Thanks in advance


All times are GMT. The time now is 08:59 AM. | Privacy Policy