|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Application.Run / Windows Service ?Hi,
Use tge service controller class Dim s As System.ServiceProcess.ServiceController For Each s In System.ServiceProcess.ServiceController.GetServices If s.ServiceName = "MSSQLSERVER" Then If s.Status = ServiceProcess.ServiceControllerStatus.Stopped Then s.Start() End If 's.Stop to stop 's.Start to start 's.Pause to pause Next Ken -------------------------------- Show quoteHide quote "Jay" wrote: > What is the replacement for Application.Run in a Windows Service? > > Jay wrote:
> What is the replacement for Application.Run in a Windows Service? ServiceBase.RunDepending on what version of 'Studio you have, you may already have a Project Template for a Windows Service. HTH, Phill W.
IN Function ?
Visual Basic to be discontinued in 2008?? Recommendations - VB .Net courses/seminars 2 dimensional array question programmatically allow tcp/ip to msde "Attempted to read or write protected memory" since 10 days... ADO.NET Rowfilter - between 2 dates Call or Not Call Install errors during a Fix install Automatically inserting method & function headers from an interface that are being implemented with |
|||||||||||||||||||||||