"Curious" <fi********@yahoo.comwrote in message
news:11**********************@q69g2000hsb.googlegr oups.com...
They're both defined as sub-classes of
"System.ServiceProcess.ServiceBase". I've built the executables. But
don't know how to get the services started.
This is how I have done it which works the same way in VB or C#.Net
Dim theServiceController as System.ServiceProcess.ServiceController
me.theServiceController = New System.ServiceProcess.ServiceController()
me.theServiceController.MachineName = "Curious"
me.theServiceController.ServiceName = "CuriousService"
if (theServiceController.Status = ServiceControllerStatus.Stopped) then
theServiceController.Start()
end if