www.evidhyashala.com provides free free mock test , free online exam , online exam free test series , online exam free , Online Test Exam Series , free exam papers past papers , online exam form ,Online Test Series for Exam Prep. Free Mock Tests - for All govt jobs. Bank PO, Clerk, SSC CGL, CHSL, JE, GATE, Insurance, Railways, IBPS RRB, SBI, RBI, IPPB, BSNL TTA

Sponser Link

know more info pls click here

Dot Net Interview Questions-What are the steps to create a windows service in VB.NET?

Windows Services are long-running executable applications that run in its own Windows session, which then has the ability to start automatically when the computer boots and also can be manually paused, stopped or even restarted.
Following are the steps to create a service:-
Create a project of type “Windows Service”.

• If you see, the class created it is automatically inheriting from “System.ServiceProcess.ServiceBase”.
• You can override the following events provided by service and write your custom code. All the three main events can be used that is Start, stop and continue.

protected override void OnStart(string[] args)
{
}
protected override void OnStop()
{
}
protected override void OnContinue()
{
}

Now to install the service you need to do run the install util exe.
InstallUtil <Project Path>\BIN\MyNewService.exe

0 comments:

Popular Posts