I created an application. Now I'm being asked to convert it to a service. Can someone tell me how to do that?
Thank you in advance. :)
Printable View
I created an application. Now I'm being asked to convert it to a service. Can someone tell me how to do that?
Thank you in advance. :)
Here's an article that explains how to create a windows service :
http://www.devarticles.com/c/a/VB.Ne...vice-in-VB.NET
Hi
If your application requires a lot of user interaction this is going to be a bit complex.
It's not advisble to have a service displaying forms. Also services don't receive windows messages.
Regards
Jorge
The application does not have a user interface. It watches a folder for incoming files, then distributes the files to different locations, and logs activity. It needs to run as a service. I've found a ton of help on how to create a service from scratch and that seems straightforward. However, I haven't found any information about how to convert an existing application to a service.
Thanks.
Hi
There's no way convert your app to a service, Just add your code on the OnStart event.
Regards
Jorge
Thank you Jorge! That worked like a charm. I tried doing that yesterday, but it kept failing. I obviously wasn't copying all the code I needed to copy. I just needed your expert advice! :wave: