Hi Guys
Please any one can explain the purpose of this code.
this.Controls.AddRange(new System.Windows.Forms.Control[] {this.button1});
This code is not there when we create a Visual Studio IDE to design a Form.
Thank you
Hi Guys
Please any one can explain the purpose of this code.
this.Controls.AddRange(new System.Windows.Forms.Control[] {this.button1});
This code is not there when we create a Visual Studio IDE to design a Form.
Thank you
Know the answer? Post it. Somebody with the same question will find it here.
Simon66 pointsPosted Apr 13, 2007, 5:41 PM EDT
Hi, It adds a list of controls, containing only one control, to the "this" object which is probably your form. So in other words it adds button1 to the current form. Simon1 short reply
Former memberPosted Apr 14, 2007, 12:05 PM EDT