private delegate void aDelegate(string aline);private void callMethod(string aline)
{
aDelegate call = delegate(string text){ this.textBox1.Text = text; };
this.Invoke(call, aline);
}想高人来详细说说这里面的call的创建是怎么回事谢谢
{
aDelegate call = delegate(string text){ this.textBox1.Text = text; };
this.Invoke(call, aline);
}想高人来详细说说这里面的call的创建是怎么回事谢谢
{
//aDelegate call = delegate(string text){ this.textBox1.Text = text; };
aDelegate call = new aDelegate(callHandler); this.Invoke(call, aline);
}private void callHandler(string text)
{
this.textBox1.Text = text;
}