Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
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, 4535👍, 0💬
Popular Posts:
What are some advantages and disadvantages of Java Sockets? Advantages of Java Sockets: Sockets are ...
How do we enable SQL Cache Dependency in ASP.NET 2.0? Below are the broader steps to enable a SQL Ca...
How To Set Background to Transparent or Non-transparent? - CSS Tutorials - HTML Formatting Model: Bl...
1. The basics first, please define the web in simple language? How is it connected with internet? Wh...
How Are Vertical Margins between Two Block Elements Collapsed? - CSS Tutorials - Understanding Multi...