what is private void InitializeComponent()

Posted by Kannan1986 under ASP.NET on 2/2/2010 | Views : 8167 | Status : [Member] | Replies : 3
what is private void InitializeComponent() in .net




Responses

Posted by: Mcamkumaran on: 2/2/2010 [Member] Starter

Up
0
Down
the initializeComponent is created automatically in system side ,that means it is a designer code .for example you have to add the button to the form that button designing coding is available in private void initilizecomponent().

automatically created code . this is called before execution of the form load

MuthuKumaran.R
Senior Software Engineer
Techcello
India.

Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhi2434 on: 2/2/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
As the name suggests, it will be initializing all the supporting design elements that are needed for your form to appear correctly.

You can easily go to defination of the method and see what is written over there.

www.abhisheksur.com

Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bubbly on: 2/2/2010 [Member] Bronze

Up
0
Down
Hello,

InitializeComponent() will initialize all your components on the form.

++
Thanks & Regards,
Deepika

Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response