If I try to change control from TH2, get an exception about cross-threading operation. I have solved that in the way that TH2 doesnt change controls but only properties in main form and in main form I have timer that every 1ms updates labels from properties. Works, no cross-therading troubles.
Although I don't like this timer that works all the time, I wanted to make maybe some asynchronous event running - that TH2 would just fire some event in main therad and it would update interface. But I dont know how to do this. How
When I tried to make some BackgroundWorker that would br run every time a property changes, it didn't change interface, just has thrown
A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll
How to force main window to update its controls in its own thread
(I think that I just don't know how to implement those events)