Hi Jeronimo,
Thanks for your post!!
Yes, just as Jon pointed out, for multithreading in Winform, any worker
thread should use Control.Invoke or Control.BeginInvoke methods to marshal
the call to the UI side methods. This is documented in "Control.Invoke
Method" in MSDN:
Note There are four methods on a control that are safe to call from any
thread: Invoke, BeginInvoke, EndInvoke, and CreateGraphics. For all other
method calls, you should use one of the invoke methods to marshal the call
to the control's thread.
For delegate, we usually use asynchronized delegate(That is BeginInvoke
method of delegate) to leverage the Thread Pool threading processing, but
it does not provide the way to safe UI thread calling.
Also, there are a serial multithreading articles writen by Chris Sells, for
your information:
"Safe, Simple Multithreading in Windows Forms, Part 1"
http://msdn.microsoft.com/library/de...us/dnforms/htm
l/winforms06112002.asp
==========================================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.