Re: Stopping vb services
From: Jim (notKnown_at_this.address)
Date: 12/15/04
- Next message: Maria Anthonsen: "Re: Problem with HitTest in DataGrid"
- Previous message: Sarah: "Re: System.Data.OleDb.OleDbException: Unspecified error"
- In reply to: Jm: "Stopping vb services"
- Next in thread: SQLScott: "Re: Stopping vb services"
- Reply: SQLScott: "Re: Stopping vb services"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Dec 2004 12:23:36 GMT
"Jm" <jarrodm@ihug.com.au> wrote in message
news:cpethh$74s$1@lust.ihug.co.nz...
> Hi All
>
> Is there a better way to stopping a vb service rather than just saying end
> in your code ?
>
This works for me:
Dim thisService as new ServiceController("insert name of this service as it
appears in services list")
thisService.Stop()
Make sure you have any necessary cleanup code in OnStop()...
Regards
--Jim.
- Next message: Maria Anthonsen: "Re: Problem with HitTest in DataGrid"
- Previous message: Sarah: "Re: System.Data.OleDb.OleDbException: Unspecified error"
- In reply to: Jm: "Stopping vb services"
- Next in thread: SQLScott: "Re: Stopping vb services"
- Reply: SQLScott: "Re: Stopping vb services"
- Messages sorted by: [ date ] [ thread ]