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
Which property on a Combo Box do you set with a column name, prior to setting the Data Source, to display data in the combo box? ComboBox.DataValueField = "ColumnName" When

How can we use Culture Auto in project? We will make a very simple login screen which we will try to use for English as well as the Greek. The login screen will display Engl

Project Description: This project uses Microsoft Visual Studio 2010/2012, Internet Information Services (IIS) Manager and Microsoft SQL Server Management Studio. It is a Mobi

Downloadable software for a PC computer and Mac Project Description: "The software" can be sold as a downloadable purchase. I must have all copy rights to "the software" when

Briefly explain the characteristics of reference-type variables that are supported in the C# programming language. The variables that are based on reference types keeps referen

Who is a stakeholder? The stakeholder is anyone who has something to gain or lose as a result of the completion or failure of the project or phase. The stakeholder is not on

What are the different elements in Functions points? 1) Internal Logical Files (ILF): Following are some points to be noted for ILF:- The ILF are logically related d

What is DBMS? It is a collection of programs that enables user to make and maintain a database. In other words it is general-purpose software that gives the users with the proc

Develop a Earnings Calculator for my Paid to Click Website Project Description: I want a calculator which will show my members how much they could earn, with value per click,

What are the precautions by which SQLSERVER Mode work properly Following are the things to keep in mind so that the SQLSERVER Mode works properly:- A) In the SQLSERVER mode,