What is the simplest way to update a Label
from another thread?
(从另一个线程更新Label
的最简单方法是什么?)
I have a Form
on thread1
, and from that I'm starting another thread ( thread2
).
(我在thread1
上有一个Form
, thread1
开始,我开始了另一个线程( thread2
)。)
While thread2
is processing some files I would like to update a Label
on the Form
with the current status of thread2
's work. (当thread2
处理某些文件时,我想使用thread2
的当前状态更新Form
上的Label
。)
How can I do that?
(我怎样才能做到这一点?)
ask by CruelIO translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…