this.Invoke(new MethodInvoker(delegate { this.Text= "Hello World!"; //this 为Form窗体 }));
引用 8 楼 aqbeyond 的回复:将inventoryList.IsAccessible替换成inventoryList.InvokeRequired.都说了是新手,还不告诉我判断放在哪?
将inventoryList.IsAccessible替换成inventoryList.InvokeRequired.
楼主没有把问题描述清楚?
110,569
社区成员
642,568
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧