Me.Invoke(Function() Me.Capture)

解决方案 »

  1.   

    this.Invoke(() => this.Capture)
      

  2.   

    this.Invoke(Function() => this.Capture)
      

  3.   

    都是一样的,自己看Invoke帮助就会了
      

  4.   

      private delegate void MyMethod();        private void button1_Click(object sender, EventArgs e)
            {            MyMethod mm = new MyMethod(this.show);
                this.Invoke(mm);
            }        private void show()
            {
                MessageBox.Show("1243");
            }
    自己定义一个委托,调用委托
      

  5.   

    this.Invoke(() => this.Capture);
      

  6.   


    无法将lambda表达式转换为委托,因为他不是委托类型
      

  7.   


    this.Invoke(delegate(){this.Capture;});

    Action act = () => this.Capture;
    this.Invoke(act);