跨執行緒作業無效: 存取控制項 'UI Control' 時所使用的執行緒與建立控制項的執行緒不同。

  • 679
  • 0

摘要:跨執行緒作業無效: 存取控制項 'UI Control' 時所使用的執行緒與建立控制項的執行緒不同。

In the C#, when the non-UI thread to change the thread about UI.

It is invalid!!

Visit those webs, u can find more information. (Chinese)

http://blog.darkthread.net/post-2008-03-26-better-winform-ui.aspx

http://blog.darkthread.net/blogs/darkthreadtw/archive/2007/09/30/tips-about-ui-thread-limitation.aspx

http://blog.darkthread.net/blogs/darkthreadtw/archive/2007/11/21/kb-keep-your-code-thread-safe.aspx