例如:
this.button1.Click += new System.EventHandler(this.button1_Click);
this.button2.Click += new System.EventHandler(this.button2_Click);
如果,我点击button1后,怎么样可以也触发button2的点击事件
this.button1.Click += new System.EventHandler(this.button1_Click);
this.button2.Click += new System.EventHandler(this.button2_Click);
如果,我点击button1后,怎么样可以也触发button2的点击事件
this.button2.PerformClick();或者:this.button1.Click += new System.EventHandler(this.button1_Click);
this.button1.Click += new System.EventHandler(this.button2_Click);
this.button1.Click += new System.EventHandler(this.button2_Click);
或者
private void button1_Click(object sender, EventArgs e)
{
button2_Click(sender,e);
}