Dectecting the Presence of a Windows Service App

B

Bob

From within a Windows Form based App, I wish to detected whether or not
a particular Windows Service App is running. What is the best way to do
this? I am writing is vb.net

Thanks,


Bob
 
J

John Timney \(ASP.NET MVP\)

The .NET framework provides the System.ServiceProcess namespace. The
SystemController class has a static method called GetServices that returns
an array of all the services running on a system.

Dim services() As System.ServiceProcess.ServiceController
services = System.ServiceProcess.ServiceController.GetServices()

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top