close
private Action<Control, string> p = (ctl, msg) => { if (ctl is Label) (ctl as Label).Text = msg; };
private void button1_Click(object sender, EventArgs e)
{
new Thread(MyMethod).Start();
}
private void MyMethod()
{
Invoke(p,label1,"OK");
}
全站熱搜