To do cross-thread operations, I use the following:
this.Invoke(new MethodInvoker(() => myMethod());
However, I can't do, for example, the following:
this.Invoke(new MethodInvoker(() => bool myBool = getBool());
return myBool;
How would I do this? I can't just do bool myBool = getBool();
because I get a cross-threading operation error.
Thanks in advance.