标签:art 多线程 event div public 线程 nbsp str star
} public void myStaticThreadMethod(int n) { for (int i = 0; i < n; i++) { this.Invoke((EventHandler)delegate { this.label1.Text ="gisoracle"+ n.ToString(); }); } } private void button1_Click(object sender, EventArgs e) { Thread thread1 = new Thread(() => myStaticThreadMethod(10)); thread1.Start(); // 只要使用Start方法,线程才会运行 }
标签:art 多线程 event div public 线程 nbsp str star
原文地址:https://www.cnblogs.com/gisoracle/p/12535017.html