public Form1() { InitializeComponent(); Thread t = new Thread(ThreadWorker); t.Start(); } private void ThreadWorker(object obj) { this.BeginInvoke((Action)(() => { this.Text = "这是标题"; })); }
public Form1() { InitializeComponent(); Thread t = new Thread(ThreadWorker); t.Start(); } private void ThreadWorker(object obj) { this.BeginInvoke((Action)(() => { this.Text = "这是标题"; })); }