G
Guest
In a form called "frm", if there is a text box called "txtBox".
When I want to update the text box by another thread, I need invoke a method to update the text box.
The delegate method may be "UpdateTextBox".
Now, another thread can call frm.BeginInvoke or txtBox.BeginInvoke to call the UpdateTextBox method. Actually, I find that both BeginInvoke can also work. What is the different?
Thanks
When I want to update the text box by another thread, I need invoke a method to update the text box.
The delegate method may be "UpdateTextBox".
Now, another thread can call frm.BeginInvoke or txtBox.BeginInvoke to call the UpdateTextBox method. Actually, I find that both BeginInvoke can also work. What is the different?
Thanks