|
-
Dec 29th, 2004, 02:17 PM
#1
Thread Starter
Lively Member
Convert application to a Service
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.
-
Dec 29th, 2004, 08:33 PM
#2
Sleep mode
Here's an article that explains how to create a windows service :
http://www.devarticles.com/c/a/VB.Ne...vice-in-VB.NET
-
Dec 30th, 2004, 07:33 AM
#3
Re: Convert application to a Service
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 dark side clouds everything. Impossible to see the future is."
-
Dec 30th, 2004, 08:09 AM
#4
Thread Starter
Lively Member
Re: Convert application to a Service
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.
-
Dec 30th, 2004, 08:54 AM
#5
Re: Convert application to a Service
Hi
There's no way convert your app to a service, Just add your code on the OnStart event.
Regards
Jorge
"The dark side clouds everything. Impossible to see the future is."
-
Dec 30th, 2004, 10:27 AM
#6
Thread Starter
Lively Member
Re: Convert application to a Service
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|