I'm working with COM object provided by Activator.
It also provide events when properties is changed there but my PropertyGrid can't update them in-time because it comes from another thread and I'm getting :
A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll
How to automate invoking property update when internal onChange
is caused by external thread?
possible fix is: CheckForIllegalCrossThreadCalls = false;
But is it possible to handle this situation in proper way?