Re: ServiceProcess.ServiceController.Start on remote machine - why synchronous?
- From: "Vadim Rapp" <vr@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 6 Jul 2005 23:11:43 -0500
Hello Chris,
You wrote in conference microsoft.public.dotnet.languages.vb on 5 Jul 2005 12:26:10 -0700:
CD> I don't know if it's a bug or not but you can call it asynchonously CD> like this (check for typos):
CD> 'make a delegate to call our start sub CD> Private Delegate Sub StartDelegate()
CD> 'Elsewhere CD> Dim s As New System.ServiceProcess.ServiceController CD> Dim sd As New StartDelegate(AddressOf s.Start) CD> Dim AsyncResult As IAsyncResult CD> AsyncResult = sd.BeginInvoke(Nothing, Nothing)
thanks, that worked!
Vadim
.
- References:
- Prev by Date: Re: Masked Textbox
- Next by Date: Re: How to convert integer(long) to byte array?
- Previous by thread: Re: ServiceProcess.ServiceController.Start on remote machine - why synchronous?
- Next by thread: Child Form to stay in Parent Form
- Index(es):