Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Good day,

I have developed Windows app in VB.NET.

How can I make this app run as a Service?

Thanks,
Posted

Hi Cynny,

A Windows Service cannot have a user interface (UI). This means your application probably cannot be converted to a service as-is. If your application does not have a UI then it should be less work to convert it to a service.

It may be possible to transfer the 'engine' of your application into a service, if no interaction with the user is required. The UI element of your application could then use this service as required.

That is, the 'engine' that does the actual work becomes a service. A separate UI to be run by the user as requried could then interact with this service.

Check out this link[^]. It is an MSDN example article showing how to create a Windows Service. Note this cannot be done in the standard version of Visual Studio.

Cheers,

Paul
 
Share this answer
 
v2
AFAIK, you cannot.

You can remove critical logic / code from there and move it into a service, which you can then run on the system.
 
Share this answer
 
v3
Comments
Simon_Whale 17-Aug-11 11:29am    
Correct +5
Abhinav S 17-Aug-11 11:36am    
Thanks. I probably got downvoted because I said it cannot be done!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900