線程間操做無效: 從不是建立控件「Control Name'」的線程訪問它問題的解決方案及原理分析

方法一、在Form Load事件中加入安全   System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false; 這是是最簡單的方式!post   方法2、使用Invoke調用委託this 參考示例代碼:spa 1.定義 委託    delegate void myDelegate(int i);    myDelegate
相關文章
相關標籤/搜索