在C#中异步执行文件复制/移动的正确方法是什么?
c# asynchronous
if (listBox1.InvokeRequired) { listBox = new StringBuilder(this.listBox1.Text); }
这是c#中的代码,执行时会为listBox1生成无效的交叉线程操作错误,listBox1是我表单中的列表框.请你们告诉我为什么?我也使用invokeRequired方法,也没有更改列表框的内容.
c# multithreading
c# ×2
asynchronous ×1
multithreading ×1