You need to call the Invoke
method on the form. For example:
private void someMethod() {
myOtherForm.Invoke(new MethodInvoker(delegate() {
// update things in myOtherForm here
}));
}
If you don't need the updates to be finished before returning back to the method, you should use BeginInvoke
instead of Invoke
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…