简单的处理,就是把button.click 下的代码删除完,就可以了。

解决方案 »

  1.   

    I doubt you can do that
      

  2.   

    可以用botton.Click-=new EventHandler(buttonOnClick);去除掉buttonOnClick的调用,但如果注册了很多方法,这样岂不很麻烦?
      

  3.   


    1。把button.click 下的代码删除完2。编译 提示出错3。除错 删 +=button.click
      

  4.   

    If you want to do it, you should take 2 steps:
    1.Delete the button.Click() method, like the following:
      private void Button1_Click(object sender, System.EventArgs e)
    {
      *****;
    }
    2.in the InitializeComponent() method,delete the related content,for exampleprivate void InitializeComponent()
    {    
    this.Button1.Click += new System.EventHandler(this.Button1_Click);//delete it
    this.Load += new System.EventHandler(this.Page_Load); }
    我的中学英语.