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 have a site that's already fully developed, and need to solve some small issue (Text editor posting error, and a Server error caused by some Nhibernate code.) Server Error in

How would ASP and ASP.NET apps run at the same time on the same server? Both ASP and ASP.net can be run at similar server, becuase IIS has the capability to respond/serve both

Project Description: I want very simple app in C# in visual studio Windows forms app Very simple database management app - three buttons - search , delete, add records and

Project Description: Overview: Prepare Windows program that runs in the background and on start up on the client's computer that grabs CERTAIN data from a.SDF file (SQL Serve

What is Data Independence? Data independence means that "the application is independent of the storage structure and access method of data". In other words, the ability to cha

show the dot net topic

Question: (a) Give three key differences between the DetailsView and FormView controls. (b) The ASP.NET 2.0 Framework introduces the idea of validation groups. How Valida

What is Post Cache substitution? The Post cache substitution is used when we want to cache the complete page but also require some of the dynamic region inside that cached page

What is V model in testing? The V model map's the type of test to the stage of development in the project. Figure: - V Model 1) Unit Testing: The Starting fro

Program of Declaring a function - C# Program Program of Declaring a function, I am looking for a program in C#. It would be great if anyone help me learn function in C# langua