Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经阅读了一些关于 COM 线程模型的内容:MTA 和 STA,例如这篇 SO 帖子:
MTA和STA的区别
在那里我们可以读到,要与 STA 内的对象进行通信,我们需要将消息泵送到这个公寓。
我的问题是怎么做(C#/VB.NET)?如何从另一个线程中抽取消息,例如,WinForms 中的文本框更新(更改其文本或其他内容)?
任何评论/指针也是可以接受的。