Error VS2022 Windows 11 vs. VS2022 Windows 10

William 41 Reputation points
2023-06-13T12:38:52.52+00:00

New computer running windows 11, installed VS 2022 community and tried to run solution generated in VS2022 community on a windows 10 computer. In debug, error generated on windows 11 computer but not on windows 10 computer.

Error;

System.InvalidOperationException: 'Cross-thread operation not valid: Control 'StatueBox' accessed from a thread other than the thread it was created on.'

Any possible reasons for the problem?

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
351 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.