all groups > dotnet myservices > october 2004 >
You're in the

dotnet myservices

group:

How to change the Startup Type of a Service with VB.NET?



Re: How to change the Startup Type of a Service with VB.NET? Gabriele G. Ponti
10/21/2004 9:39:23 AM
dotnet myservices: Look at the StartType property of the ServiceInstaller class.

How to change the Startup Type of a Service with VB.NET? DraguVaso
10/21/2004 2:23:04 PM
Hi,

How do you change the Startup Type of a Windows Service with VB.NET?
When using the ServiceController you can Start and Stop a Service, but I
can't find anywhere how to change the Startup Type?

Thanks a lot in advance,

Pieter

Re: How to change the Startup Type of a Service with VB.NET? SenthilVel
11/23/2004 7:46:21 PM
Hi

You can have this code to start the service automatically :
serviceInstaller1.StartType =
System.ServiceProcess.ServiceStartMode.Automatic;

This must be added in the ProjectInstaller class.

,,,

Senthil



[quoted text, click to view]

RE: How to change the Startup Type of a Service with VB.NET? Othman Kinani
2/14/2005 9:41:24 AM


[quoted text, click to view]
AddThis Social Bookmark Button