I understand that multi-threaded WinForms apps are required to use Control.Invoke or Control.BeginInvoke when accessing a control from a thread other than the UI thread.
But does this rule also apply when manipulating objects that are contained within a control but which do not derive from the Control base class?
For example, when using a WebBrowser control, is it OK to manipulate the DOM without using Control.Invoke?
Thanks,
Tim
This applies to everything inheriting from
Control.By the way: you can just try this. It normally automatically throws under debug mode when you’re accessing the methods illegally.