本帖最后由 icoer 于 2011-05-21 13:22:15 编辑

解决方案 »

  1.   

    button3_Click(button3,EventArgs.Empty)
      

  2.   

    button3_Click   +=new System.EventHandler(this.Button_Click);  
      

  3.   

    button3_Click +=new System.EventHandler(this.Button_Click);  //添加事件
    button3_Click -=new System.EventHandler(this.Button_Click);  //移除事件
      

  4.   

    试试 button3_click(this, new EventArg());
      

  5.   


    编译时出现以下提示:
    错误 CS0026: 关键字“this”在静态属性、静态方法或静态字段初始值设定项中无效
      

  6.   

    把button中要实现的操作提取方法,然后再次此处调用。
      

  7.   

    private static string GetWebContent(string Url)我把static去掉后,编译通过 谢谢!ojlovecd