InvokeRequired refers to the .NET WinForms Control.InvokeRequired method, which needs to be checked before UI updates are made.
In .NET WinForms Control.InvokeRequired
needs to be checked before UI updates are made.
It will be True
when the handle has been created and the current thread is not the thread on which the control was created.
When it is True
, you need to perform the UI update using a delegate call through Control.Invoke
which will marshal the delegate onto the UI thread.
MSDN link - Note that other frameworks can implement this concept using the System.ComponentModel.ISynchronizeInvoke
interface (though something is still needed to actually marshal the calls back to another thread).