【发布时间】:2013-08-21 00:18:31
【问题描述】:
我有这个运行.exe的代码
string openEXE = @"C:\Users\marek\Documents\Visual Studio 2012\Projects\tours\tours\bin\Debug\netpokl.exe";
Process b = Process.Start(openEXE);
b.EnableRaisingEvents = true;
b.Exited += (netpokl_Closed);
当它关闭时,它会调用 netpokl_Closed 方法。问题是当我insert into netpokl_Closed command - this.Close() 这个异常出现时:Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on
我该如何解决?感谢您的时间和回答。
【问题讨论】:
标签: c# multithreading winforms exe