//这个函数里
private void InitializeComponent()
{      this.Button1.Click += new System.EventHandler(this.Button1_Click);
  this.Button2.Click += new System.EventHandler(this.Button1_Click);
  this.Button3.Click += new System.EventHandler(this.Button1_Click);
  this.Load += new System.EventHandler(this.Page_Load);
}

解决方案 »

  1.   

    this.Button1.Click += new System.EventHandler(this.Button1_Click);
      this.Button2.Click += new System.EventHandler(this.Button1_Click);
      this.Button3.Click += new System.EventHandler(this.Button1_Click);
      

  2.   

    然后,能不能在Button1_Click函数中得到执行的点击按钮是哪个?
      

  3.   

    当然可以.
    private void Button1_Click(object sender, System.EventArgs e)
    {
    string BtnName;
    BtnName=(Button)sender.Name;//得到点击Button的NAME.当然也可以得到其它值;
    }
      

  4.   

    可以从Button1_Click的参数sender获得是哪个按钮触发的事件
      

  5.   

    也可以在Button2_Click的函数里面调用Button1_Click
    this.Button1_Click(new object(),new eventarg())
      

  6.   

    Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click,btnDelete.Click,btnEdit.Click
      

  7.   

    同一事件句柄 Handles 。