public Form1(){ InitializeComponent(); Thread t = new Thread(ThreadWorker); t.Start();}private void ThreadWorker(object obj){ this.BeginInvoke((Action)(() => { this.Text = "这是标题"; }));}
本文共 259 字,大约阅读时间需要 1 分钟。
public Form1(){ InitializeComponent(); Thread t = new Thread(ThreadWorker); t.Start();}private void ThreadWorker(object obj){ this.BeginInvoke((Action)(() => { this.Text = "这是标题"; }));}
转载于:https://www.cnblogs.com/wzwyc/p/6292211.html