473,386 Members | 1,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Dectecting the Presence of a Windows Service App

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

Nov 22 '05 #1
1 1113
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.GetService s()

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Bob" <bo*@metaprosystems.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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

Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nick Zdunic | last post by:
Hello. I may have missed something simple here but I want to know that when a form is closed whether it was closed when the X is clicked. How is this achieved?
1
by: Bob | last post by:
>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
9
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service...
6
by: Perquiaga | last post by:
Hi to all I have to detect the mouse presence and disconection if occurs to give alerts. I'm using VB .NET, if somebody can help i'll apretiate it.
10
by: Phoe6 | last post by:
Operating System: Windows Python version: 2.4 I have bookmarks.html and wumpus.c under my c: When I tried to check the presence of the bookmarks.html, I fail. >>>...
12
by: Simon Hart | last post by:
Hi, I am using Impersonation and turned off anon access for my web service. I am using the administator to authenticate the request using ICredentials. I am simply trying to read a key in...
2
by: MATT | last post by:
I am trying to create a windows service. The part I am having trouble with is writing text to a log file. I am using a very basic StreamWriter function to try to test this. I have created a...
7
by: Chris Mullins | last post by:
I'm in the process of building a number of (Web) Services using .NET 3.0 and WCF. These services are intended to be deployed within the Intranet of a very, very large orginization. I need to...
7
by: Diego F. | last post by:
Hello. I have a windows service running that listens to a port and makes insert queries in a database. I need to make an interface, so my idea is creating a simple windows application that just...
9
by: gagonm | last post by:
Hi All I have a scenario where I need to call windows live presence api in interval of 2 to continuously update presence status of an user on my webpage without postback.I went through this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.