Steps to create a windows service in vb.net, DOT NET Programming

What are the steps to create a windows service in VB.NET ?

The Windows Services are long-running executable applications that run in its own Windows session, which then has the ability to restart automatically when the computer boots and also can be manually  stopped ,paused or even restarted.

The steps to create a window service in VB.NET are as follows:-

1)    Create a project of type "Windows Service".

283_windows service.png

Figure: - Create project for Windows Service

2) If you view the class created it is automatically inheriting from "System.ServiceProcess.ServiceBase".

3) You can override the given events provided by the service and write your own custom code. All the 3 main events can be used that is Start, continue and stop.

protected override void OnStart(string[] args)

{

}

protected override void OnStop()

{

}

protected override void OnContinue()

{

}

1)    Now to install the service you require to do run the install util exe.

InstallUtil \BIN\MyNewService.exe

Posted Date: 9/22/2012 6:37:08 AM | Location : United States







Related Discussions:- Steps to create a windows service in vb.net, Assignment Help, Ask Question on Steps to create a windows service in vb.net, Get Answer, Expert's Help, Steps to create a windows service in vb.net Discussions

Write discussion on Steps to create a windows service in vb.net
Your posts are moderated
Related Questions
I want simple code for Outlook (express,2003,2007,2010,2013) Add-In with functionality to routinely send CC to the specified email(s), this system should have -Code for every th

ILDASM When it comes to the understanding of the internals nothing can beat ILDASM. ILDASM  converts all the exe or dll into IL code. To run ILDASM you have to go to "C:\Progra

What is the use of a .disco file? A client application uses a .disco file to locate or discover the documents that have the description of a Web service. The .disco file having

Project Description: Take a CSV of Canadian street addresses. For every address, translate the address into a GPS coordinate. Use the GPS coordinate to test whether or not the a

Job Portal A one-stop explanation to all your needs. Consist of employee as well as employer login accounts. Employee capable to look for jobs. Employer capable to post jobs.

The ASP.NET impersonation is totally controlled by entries in the applications web.config file. Default setting is "no impersonation". You can explicitly describe  that ASP.NET sho

Demonstrating Boxing and Unboxing - C# Program Hi, Can any of you, tell me how to use boxing and Unboxing in c#?

Project Description: PURPOSE Xconnect needs a fully automated system for receiving and processing Terminator cost sheets based on set business principle, convert the accepted

Explain the limitations of AJAX. The following are the limitations of AJAX: It is complex to bookmark a particular state of the application. Function given in the code-be

I have a responsive database structure and web template. I need someone to prepare the code (.net, jquery ) to make interaction with database . Insert, edit , save . Plus a custom