Task.Factory.StartNew(() => { }).ContinueWith(task => { this.Invoke(new Action(() => { MessageBox.Show(this, "执行完成"); })); });