我想写一个匿名方法,在Control.invoke里面
this.Invoke(delegate { this.button1.Enabled = false; });编译出来两个错误:
1.
The best overloaded method match for 'System.Windows.Forms.Control.Invoke(System.Delegate)' has some invalid arguments
2.
Argument '1': cannot convert from 'anonymous method' to 'System.Delegate'请高手指教