WhatACorker
asked on
How do I turn a VB application into a service
I have an application that currently requires the user to start and stop it. I want to turn the application into service so that it has no user interface and runs in the background as just another service. I think all I need to do is hide my forms and press the start button using the on_load subroutine to press the start button through code. Once I compile the code, I don't know how to introduce it as a service. Can I still use the application.path function, or do I need to hard code paths?
ASKER
The posted article relates to '95 and NT. Does the NT portion apply to Windows 2000 Pro?
You can add it to the task scheduler start ,programs, accessories , system tools , scheduled tasks
ASKER
Does a scheduled task require that you are logged on in order for the task to be launched?
I don't think you need to , but im not sure. here are some links
http://support.microsoft.com/default.aspx?scid=kb;en-us;188624
http://support.microsoft.com/default.aspx?scid=kb;en-us;232766
The best thing to do is try it out. schedule something then turn your computer on and don't login. after the time has passed then login.
http://support.microsoft.com/default.aspx?scid=kb;en-us;188624
http://support.microsoft.com/default.aspx?scid=kb;en-us;232766
The best thing to do is try it out. schedule something then turn your computer on and don't login. after the time has passed then login.
Use the ActiveX control NTService.ocx.
http://downloads-zdnet.com.com/3000-2408-1497936.html
(site was unavailable at this time - try other sites....)
This control makes you capable of setting up start/stop/pause/continue events.
Methods for installing the Service, and uninstalling.
http://downloads-zdnet.com.com/3000-2408-1497936.html
(site was unavailable at this time - try other sites....)
This control makes you capable of setting up start/stop/pause/continue events.
Methods for installing the Service, and uninstalling.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.vbwire.com/advanced/howto/service.asp
It includes a link to the 'srvany' utility that is required to get VB apps to run as a service.