I've posted this question on the DOT-CLR list, as well as the MS InterOp newsgroup, with no luck. I'm hoping someone here will be able to help with this problem.
I am trying to use the WebBrowser control in a UI-less manner. To do this, I need to turn off image loading and JavaScript execution. The only way I have seen to do this is by setting a custom ambient property in the form containing the WebBrowser. But, I don't know how to do this in C#/.net, or if it's even possible. In C++, in the Invoke method of the containing application, the dispid was checked, and if it was a query for the ambient download control, a bit mask was returned with the options. I have no idea how to get to the Invoke method of a WinForm for InterOp (not the thread aware Invoke method used for thread marshalling). Is there any way to do this from .net? The C++ example I have been using as a basis for what I want is the walkall example[1] from msdn. Thanks for any help, Erick [1] http://msdn.microsoft.com/downloads/samples/internet/default.asp?url=/downlo ads/samples/internet/browser/walkall/default.asp You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
