Tuesday, March 20, 2012

How to disable the exception of cross threading.

With the code bellow you cane disable the exception for "Controls created on one thread cannot be parented to a control on a different thread."

It is not good to do this, but when you have a legacy application to covert it is nice to know that you can.

System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;

No comments:

Post a Comment

Kitematic - Self Signed Certificate In Certificate Chain

Found this issue while behind a enterprise proxy. Proxy uses self signed certificate. Windows has the certificate as trusted, docker works f...