private bool getWindowBool() {
bool myBool;
this.Invoke(new MethodInvoker(() => myBool = IsForegroundWindow));
return myBool;
}
为什么这不起作用?我将如何做我想要实现的目标?
private bool getWindowBool() {
bool myBool;
this.Invoke(new MethodInvoker(() => myBool = IsForegroundWindow));
return myBool;
}
为什么这不起作用?我将如何做我想要实现的目标?