修改“任何".交叉线程中的对象 [英] modifying "any" object in cross threading

查看:65
本文介绍了修改“任何".交叉线程中的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
是否可以在尚未创建对象的线程中修改"任何"对象?
如我们所知,如果对象是UI控件,则尝试执行此操作将引发错误,指出"从不是在其上创建线程的线程访问的线程"

Hello,
Is it possible to modify "any" object in a thread which has not created it?
As we know that if the objects are UI controls, then attempting this would throw an error stating "Control accessed from a thread other than the thread it was created on"

推荐答案

是的,您只需要了解所涉及的规则和过程即可.如果您搜索该错误消息,则将找到有关如何执行此操作的所有示例.
Yes, you just have to be aware of the rules and the process involved. If you google that error message, you''ll find all kinds of examples about how to do it.


这篇关于修改“任何".交叉线程中的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆