I have an old (build in 2008 with VS2003) application software for an industrial application based on windows forms. Now our customer wants to extend some functions, but I can't run the software properly.
I have a lot of cross-thread operations errors:
System.InvalidOperationException: "Invalid cross-thread operation: The control btn002 was accessed from a different thread than the thread it was created on."
This is not only with btn002.
I could solve those errors with using Invoke delegates,
mbtnArr[i].btn.Invoke(new MethodInvoker(delegate ()
but some functions don't work now correctly.
Does anybody had this problem too and could it solve with an easy add of a library or something like that?