ServiceController

  • Thread starter Thread starter ucasesoftware
  • Start date Start date
U

ucasesoftware

Dim myController As ServiceController
myController = New ServiceController("myWrondName")

i try :

if myController is nothing then
messagebox.show("This service doesn't exist"
end if

but IS NOTHING doesn't work with ServiceController

What can i do ?
 
The constructor doesn't actually do anything except some syntax checking. If
you want to know if your Service is installed, get the Status property and
be prepared to catch an exception when it's not installed.
 
Back
Top