Question -
I'm using the "AxWebBrowser" component and it's requiring that I create the instance using the STA model in my Main() method for my hosting WinForm.
Are all Interopt compoenets STA
And if not is there a way that I can either:
A) modify the compoent so that I can use MTA
B) a better web browser component that does support MTA.
Thanks!
Viking

COM Interopt - is it all STA or single threaded?
erikj
The only legal Windows Forms call from a thread other than the one that created the control is Control.Invalidate.
Shyam Palreddy
"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 these invoke methods when calling from a different thread."
Is there a discrepancy here Am I missing something I'm guessing that you're right, and the docs are incomplete.
Just wondering, 'cause I do a lot of public blabbing on threading in Windows forms, it seems... <g> Thanks!
Yossi Drori
- mike