Run App as service

  • Thread starter Thread starter T Cordon
  • Start date Start date
First you have to create the project as a service (new project --> WIndows
Service), I assume you mean Windows Service (vs. Web)? Once you have
created your service, you have to install it using installutil.exe.
 
Would this work:

Create a service, add the forms and on service start open the main form?

Thanks
 
Would this work:

Create a service, add the forms and on service start open the main form?


A service is run when the computer starts. You should not have a form in a
service because there may be no one logged onto the system to see the form.

Instead, create your service and then also create a Windows Forms App that
can communicate with the service.

There have been numerous posts on the newsgroups describing this.
 
You cannot have a form in a Windows Service.

T Cordon said:
Would this work:

Create a service, add the forms and on service start open the main form?

Thanks
 
Back
Top