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
25 16 25 9 16 25 4 9 16 25 1 4 9 16 25

What are shared (VB.NET)/Static(C#) variables? Shared/Static classes are used when a class gives functionality which is not specific to any instance. In brief if you want an ob

The Events are always public as they are meant to serve each one registering to it. But you can access modifiers in the events.You may have events with protected keyword which will

Experienced Microsoft .NET web developer I have a various projects for which I need a web developer for. The developer will be the sole product owner hence should be dependab

Explain project life cycle. Figure: -Life cycle of a project There are 5 stages of any project initiating, planning, executing, controlling, & closeout. These are the

How to decide on the design consideration to take a Datagrid, datalist or repeater? So many make a blind choice of choosing datagrid directly, but that is not the right way.

Converting Rs. to Paisa - C# Program Need the code of C# Program for Converting Rs. to Paisa.

The ASP.NET new feature supports are shown below :- Better Language Support 1) The New ADO.NET Concepts have been implemented. 2) The ASP.NET supports complete  language

Asp.net expert and simple html I am not new to the industry. I am seeking a long term asp.net developer to build and maintain a volleyball player management website. We would

Explain different types of XML Application Programming Interface (API). The following are two main parts of XML parsers: Tree-based API - Compiles an XML document into a tre