nbsp; this.btnRemove.Click += new System.EventHandler(this.btnRemove_Click);
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(512, 381);
this.Controls.Add(this.btnRemove);
this.Controls.Add(this.btnAdd);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
#endregion
[STAThread]
static void Main() {
Application.Run(new Form1());
}
private void btnAdd_Click(object sender, System.EventArgs e) {
this.btnArray.AddNewButton();
// 这里就是通过索引访问的实例
this.btnArray[0].BackColor = Color.Blue;
}
private void btnRemove_Click(object sender, System.EventArgs e) {
&