原来c#里面所有其他线程调用的都要加,不加就会卡死
private delegate void DispMSGDelegate1(string MSG); public void setContentText(string txt) { if (this.richTextBox1.InvokeRequired == false) //same thread { this.listViewTestItems.Items[currentRow].SubItems[1].Text = txt; Thread.Sleep(300); } else { DispMSGDelegate1 DMSGD = new DispMSGDelegate1(setContentText); this.richTextBox1.Invoke(DMSGD, txt); } }
标签:string,void,DispMSGDelegate1,richTextBox1,setContentText,解决,终于,txt,bug From: https://www.cnblogs.com/cnchengv/p/17787851.html