Re: creating windows service
Are you using Visual Studio? I believe it includes a template project for creating Windows services.
Also, services are generally designed to function without user interaction. What do you need a form for?
Re: creating windows service
hi, thank u for ur kind reply. i know there is no customer interaction in the service. i need to do some function in the onstart of the service. how can i do that . i was created windows service , but it is not opened when the system is boot up. how can i solve the problem> . plz help me to solve the problem
thank u
with thanks and regards
mmary
Re: creating windows service
You have to set services to run on startup using the Services management console.
Re: creating windows service
thank u for ur reply.how can i do that using the coding?
with thanks and regards
mmary
Re: creating windows service
Where you install your services using the ServiceInstaller class, specify Automatic start up mode.
Code:
ServiceInstaller s = new ServiceInstaller();
s.StartType = ServiceStartMode.Automatic;