我有一个循环(BackgroundWorker的),这种情况正在改变一个图片的位置非常频繁,但我发现了一个错误 -VB.NET跨线程操作无效
Cross-thread operation not valid: Control 'box1' accessed from a thread other than the
thread it was created on.
我不明白,在它所有,所以我希望有人能帮助我解决这个问题。
代码:
box1.Location = New Point(posx, posy)
[主UI窗口未更新控件 - 跨线程操作无效]的可能重复(http://stackoverflow.com/questions/470390/main-ui-windows-not-updating-control-cross -thread操作 - 不有效) –