Results 1 to 6 of 6

Thread: Convert application to a Service

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2004
    Posts
    121

    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.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Here's an article that explains how to create a windows service :
    http://www.devarticles.com/c/a/VB.Ne...vice-in-VB.NET

  3. #3
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    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."

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Dec 2004
    Posts
    121

    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.

  5. #5
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    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."

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Dec 2004
    Posts
    121

    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
  •  



Click Here to Expand Forum to Full Width