Running a Windows Forms app. from a service.

Posted by RemotecUk on Stack Overflow See other posts from Stack Overflow or by RemotecUk
Published on 2010-04-08T08:12:39Z Indexed on 2010/04/08 8:23 UTC
Read the original article Hit count: 350

Hi, I have a strange application in that for development and testing I need a windows forms application so that I can monitor what it is doing. For production, the application will be started from a service and no visible UI is needed. I dont really want to re-write the app. once it is completed into a console app so I would like to leave it as it but start it from the service.

My question is will this application work fine from a service? At the moment it has UI elements and I have been able to successfully start the application from a service using the Process class (System.Diagnostics).

Could anything go wrong with this approach?

© Stack Overflow or respective owner

Related posts about c#

Related posts about windows-services