4
Answers

InitializeComponent method

Ask a question
George George

George George

16y
17.6k
1

Hello everyone,


To implement a service, I think we just need to derived from ServiceBase class, and implement some event handler function, like OnStart, OnStop, etc.

As described in the sample,

http://msdn2.microsoft.com/en-us/library/system.serviceprocess.servicebase(VS.80).aspx

What is the function of method InitializeComponent? I found it never called explicitly in the class SimpleService, nor there are any document from MSDN about this method. Any ideas?


thanks in advance,
George


Answers (4)