I want to know if a service startup mode is set on "automatic", and if yes, to set it to "Manual"
I have this code:
If objService("StartMode").ToString = "Automatic" Then
objService.ChangeStartMode("Manual")
End If
But when i compile my project, Visual Studio reports that error:
COMException was unhandled : Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))
in If objService("StartMode").ToString = "Automatic" Then
Please help me how to solve that? It's very important for me. Thanks.
I'm using Visual Studio 2008, VB.NET, Windows XP Sp3, on Administrator account.