this.invoke(new Action


private void CheckA() { System.Threading.ThreadPool.QueueUserWorkItem(t => { ShowInfo("檢測開始....."); System.Threading.Thread.Sleep(3000); ShowInfo("暫停3秒結束....."); System.Threading.Thread.Sleep(2000); ShowInfo("暫停2秒結束....."); System.Threading.Thread.Sleep(1000); ShowInfo("檢測結束"); }); } private void ShowInfo(string Info) { listView1.Invoke(new Action(() => { listView1.Columns[0].Width = listView1.ClientSize.Width; listView1.Items.Insert(0, new ListViewItem(Info)); })); }



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM