ServiceController in Visual Basic .NET

Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013

This lesson describes the ServiceController control


ServiceController

This component represents a Windows service process, and provides methods that let you connect to a running or stopped service to control it or get information about it.

The ServiceController component's ServiceName property gets or sets the name of the service associated with the component.

To set this value at design time, select a ServiceController in the form designer. Then, click the ServiceName property in the Properties window and click the dropdown arrow on the right to see a list of available services on the system.

The class's methods let you start, pause, continue, or stop the service.

Note: this is a fairly advanced and specialized topic, so it is not covered in detail here. For more info on ServiceController class you can check the following articleServiceController Class

Previous Lesson | Next Lesson


Share This

Home | About | Contact | Privacy Policy

Copyright visual-basic-tutorials.com 2017 - All Rights Reserved.