Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通过调用自己的 BeginInvoke() 来处理控件是个好主意还是坏主意?或者我应该使用父控件或类似的东西来完成这项任务?
我正在使用 Invoke,因为我正在从另一个线程访问控件。
我不明白为什么这应该是一个坏主意。Invoke 或 BeginInvoke 除了在正确的线程上调用方法外不做任何特殊的技巧。