[Mono-dev] Winforms WebBrowser control - call for apps

Andreia Gaita shana.ufie at gmail.com
Tue Oct 9 18:16:56 EDT 2007


On 10/9/07, Adar Wesley <adar.wesley at gmail.com> wrote:
>
> Hi Andreia,
>
> Is this implementation a wrapper around IE and/or Windows specific?
>

It is a wrapper for Mozilla, so it's not windows-specific. It runs on Linux
and Windows at the moment.

I have a sample application that hosts the WebBrowser control on a WinForms
> application.
> In this sample I do the following:
> 1. derive from the WebBrowser control.
> 2. overrid the Site associated with the browser by overriding
> CreateWebBrowserSiteBase.
> 3. Hook up the DWebBrowserEvents2 events
> 4. Interact with the hosted JavaScript by supplying ObjectForScripting.
> 5. Inject some JavaScript to the browser scripting environment.
> 6. A little more Win32 and COM interop magic to override the scripting
>     environment window.open and window.close methods so I can control
>     where popup windows are opened.
>

Very interesting, thank you for the feedback. What you describe is not
supported right now, but I would love to have a test case for this to help
my implementation, it would be immensely useful. :)

andreia gaita
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20071009/9e2fb23d/attachment.html 


More information about the Mono-devel-list mailing list