我有这个运行的代码.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
我该如何解决?感谢您的时间和回答。