[Gtk-sharp-list] Embedding an IE window in a GTK Application *SOLUTION

Phillip Dyer p85dyer at gmail.com
Thu Feb 8 14:48:50 EST 2007


    I found a solution to embedding an IE Window in a GTK Application. 
It's fairly trival to me now but it took me awhile to figure out what to 
do. Here's the most important lines to implement it:

           SHDocVw.InternetExplorer ie = new 
            ie.RegisterAsBrowser = true;
           SHDocVw.IWebBrowserApp wb = (SHDocVw.IWebBrowserApp)ie;

            Gdk.Window b = Gdk.Window.ForeignNew((uint)wb.HWND);        
        //Create the IE window as a GDK.Window    

//Parent the IE GDK Window with the controls GDK Window

               //Show the IE GDK Window.

    Hope that helps anyone else who might be looking use IE with GTK.


More information about the Gtk-sharp-list mailing list