InitializeComponent method

This is a discussion on InitializeComponent method within the C# Programming forums, part of the General Programming Boards category; Hello everyone, To implement a service, I think we just need to derived from ServiceBase class, and implement some event ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    InitializeComponent method

    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/lib...se(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

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    If it's anything like a windows forms application that function is initializing the form and its controls, basically calls some code to make buttons, textboxes etc... to appear in the form.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    1,579
    Thanks Magos,


    Your answer is clear. :-)

    Quote Originally Posted by Magos View Post
    If it's anything like a windows forms application that function is initializing the form and its controls, basically calls some code to make buttons, textboxes etc... to appear in the form.

    regards,
    George

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. on method pointers and inheritance
    By BrownB in forum C++ Programming
    Replies: 2
    Last Post: 03-02-2009, 06:50 PM
  2. stuck on display method
    By shintaro in forum C++ Programming
    Replies: 2
    Last Post: 02-01-2009, 04:17 PM
  3. Best communication method to thousand childs?
    By Ironic in forum C Programming
    Replies: 8
    Last Post: 11-07-2008, 11:30 PM
  4. Delegate Calling a method that Calls a delegate.
    By xddxogm3 in forum C# Programming
    Replies: 2
    Last Post: 05-05-2008, 12:59 AM
  5. Replies: 2
    Last Post: 01-22-2008, 03:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21