Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What are the steps to create a windows service in VB.NET
What are the steps to create a windows service in VB.NET?
✍: Guest
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 :-
1. Create a project of type gWindows Serviceh.
2. If you see the class created it is automatically inheriting from
“System.ServiceProcess.ServiceBase”.
3. 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()
{
}
4. Now to install the service you need to do run the install util exe.
InstallUtil
2007-10-24, 5042👍, 0💬
Popular Posts:
If we have the following in a Java code: String s="abc"; String s2="abc"; Then what will be output o...
How To Enter Characters as HEX Numbers? - MySQL FAQs - Introduction to SQL Basics If you want to ent...
How To Check the Oracle TNS Settings? - Oracle DBA FAQ - ODBC Drivers, DSN Configuration and ASP Con...
Are risk constant through out the project ? * Never say that risk is high through out the project. R...
it will be very helpful if you send some important Questions with Answers of DBMS Tell us what types...