Although I recommend using Invokeor BeginInvoke(after the call InvokeRequired, of course), you can prevent cross-thread exceptions altogether by calling this from your form or UserControl:
CheckForIllegalCrossThreadCalls = false;
( CheckForIllegalCrossThreadCallsis a static property Control)
If you decide to do this, you may get some strange results in the user interface.
fre0n source
share