Communicating with a service

J

John

Hi

I need a vb.net winform app to be able to query a service (also written in
vb.net) and get info in return. Is it possible? Is there a way to do this?

Thanks

Regards
 
H

Herfried K. Wagner [MVP]

John said:
I need a vb.net winform app to be able to query a service (also written in
vb.net) and get info in return. Is it possible? Is there a way to do this?

There are many different solutions: sockets, named pipes, .NET remoting,
....
 
R

rowe_newsgroups

Hi

I need a vb.net winform app to be able to query a service (also written in
vb.net) and get info in return. Is it possible? Is there a way to do this?

Thanks

Regards

A web service I'm guessing? If so please just use the "Add web
reference" option (if in vs 2005). If you're using 2008 do a google
search (something I wonder if you ever do) and look for the how-to,
it's changed from 2005.

Thanks,

Seth Rowe [MVP]
 
G

Guest

I need a vb.net winform app to be able to query a service (also
written in vb.net) and get info in return. Is it possible? Is there a
way to do this?

Depends on how the service was built, but take a look at ServiceController.
 
K

kimiraikkonen

Hi

I need a vb.net winform app to be able to query a service (also written in
vb.net) and get info in return. Is it possible? Is there a way to do this?

Thanks

Regards

If you're trying to query a local Windows service status, i'd prefer
ServiceController component using:

servicecontroller1.status = <desired_status>

eg:

if servicecontroller1.status =
ServiceProcess.ServiceControllerStatus.Running Then
' Do stuff while service is ON
Else
' .....
End If

Don't forget to assign the service name from properties window before
using this control.
 

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