2017-11-04 81 views

回答

-1

你必须但close();声明此为WPF

Application.Current.Dispatcher.Invoke(() => 
{ 
    // Code to run on the UI thread. 
}); 

,并在本作的WinForms

this.BeginInvoke(new MethodInvoker(delegate 
{ 
    // Code to run on the UI thread. 
});