Open Zkore opened 7 years ago
The UI shouldn't be modified from a thread other than the main thread. Perhaps you're not invoking correctly? (quickly googled a VB.Net example on the subject) If that's not the case, let me know.
PS: MaterialSkin is written solely in c#. Since both c# and VB.Net compile to CIL (Common Intermediate Language), the library can be used for both.
Thanks for the info. As far as I am aware my invoke methods are working correctly (due to I use them to add other user controls) and it only throws the exception on the one that contains an element from MaterialSkin (in this case, I was testing with a radiobutton).
I see. Could you perhaps post some more information:
That would make it easier to see what's going wrong.
Adding a control into a usercontrol which gets called from a background worker gives cross-thread exceptions due to non-thread safe methods it seems, perhaps I could modify the methods for thread safety, but I couldn't find the code for VB .Net in the repository.