Steps to create a windows service in, 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, Assignment Help, Ask Question on Steps to create a windows service in, Get Answer, Expert's Help, Steps to create a windows service in Discussions

Write discussion on Steps to create a windows service in
Your posts are moderated
Related Questions
Develop Nesting software with unit costing for gasket manufacturing Project Description: Our current gasket costing software is old and antiquated and has limited use interna

How object pooling in .NET is done COM+ reduces overhead by creating object from scratch. Thus  in COM+ when object is activated its activated from pool and when its deactivate

Social Media project Project Description: It's a Windows Phone application which requires the subsequent capabilities: -Live Video Streaming -Social Networking capabili

Could you please explain to me the different types of DOT NET programming

What is object-oriented programming (OOP)? OOP is a technique to develop logical modules, like classes that contain properties, methods, fields, and events. An object is formed

In which statement the LINQ query is executed? A LINQ query is executed in the For every statement in Visual Basic and in the for each statement in C#.

What is normalization & what are the types of normalization? Normalization is a set of rules that have been established to aid in the design of tables that are meant to be conn

Required Experienced dot Net., JSP, PHP, Java Programmers Skilled professional and command in Programming either any one of the given mentioned programming coding with database

Develop a iPhone and Android mobile game Project Description: I am seeking a developer to create a mobile game for me. I need an endless runner game with simple controls. The