Stop WindowsService Application

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

Hi,

How can I stop my Windows Service Application. I looked for something like
me.close but found nothing equivalent.

Thanks, Tony
 
Tony said:
How can I stop my Windows Service Application. I looked for something
like me.close but found nothing equivalent.

You want the Windows service to stop itself? You could use the
ServiceController class to grab a reference and issue the Stop() method.
 
Back
Top