2017-11-04 82 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. 
});