Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It sounds like you may be interested in creating a <a href="http://en.wikipedia.org/wiki/Windows_service" rel="nofollow">windows service</a>.</p> <p>You should be able search for terms such as "Windows service in VB.net" to find some more in depth tutorials. </p> <p>I Found an example online at <a href="http://code.msdn.microsoft.com/windowsdesktop/VBWindowsService-3fc2805b" rel="nofollow">code.msdn.microsoft.com</a>.</p> <p>In case the link is broken here are a few snippets from the article:</p> <blockquote> <p>Step1. In Visual Studio 2010, add a new Visual Basic / Windows / Windows Service project named VBWindowsService. The project template automatically adds a component class named Service1 that inherits from System.ServiceProcess.ServiceBase.</p> <p>Step2. Rename the default Service1 to the name "SampleService". Open the service in designer and set the ServiceName property to be VBWindowsService.</p> <p>Step3. To add custom event log functionality to your service, drag and drop an event log component from toolbox to the design view, and set its Log property to be Application, and its Source to be VBWindowsService. The event log component will be used to log some messages to the Application log.</p> <p>Step4. To define what occurs when the service starts and stops, in the Code Editor, locate the OnStart and OnStop methods that were automatically overridden when you created the project, and write code to determine what occurs when the service starts running.</p> <p>NOTE: A service application is designed to be long running. Therefore, it usually polls or monitors something in the system. The monitoring is set up in the OnStart method. However, OnStart does not actually do the monitoring. The OnStart method must return to the operating system after the service's operation has begun. It must not loop forever or block. To set up a simple monitoring mechanism, one general solution is to create a timer in OnStart. The timer would then raise events in your code periodically, at which time your service could do its monitoring. The other solution is to spawn a new thread to perform the main service functions.</p> </blockquote> <p>I removed references to some of the specifics of the example and omitted the source code.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload