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); } 我的中学英语.
1。把button.click 下的代码删除完2。编译 提示出错3。除错 删 +=button.click
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); }
我的中学英语.