Move a Webbrowser to a new window?
-
I have a Webbrowser control in a window. When the user clicks a button I want to create a new window (Form) and move the webbrowser control into the new window. Sounds simple! Trouble I'm having is that when I change the parent of the webbrowser to the new window, the webbrowser stops working. Its kind of frozen, no redrawing or anything. I think this has something to do with OCX, but I know nothing about OCX. When you add a webbrowser to your form in VS.net, it adds some code that deals with OCX. Anyway does anyone know how to move a webbrowser control to a new window? (I can't just make a new webbrowser in the new window because of the page that's in it..) "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx
-
I have a Webbrowser control in a window. When the user clicks a button I want to create a new window (Form) and move the webbrowser control into the new window. Sounds simple! Trouble I'm having is that when I change the parent of the webbrowser to the new window, the webbrowser stops working. Its kind of frozen, no redrawing or anything. I think this has something to do with OCX, but I know nothing about OCX. When you add a webbrowser to your form in VS.net, it adds some code that deals with OCX. Anyway does anyone know how to move a webbrowser control to a new window? (I can't just make a new webbrowser in the new window because of the page that's in it..) "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx
I believe you can't. Stuff like IOleClientSite, IOleInPlaceActiveObject are the reasons why.
-
I believe you can't. Stuff like IOleClientSite, IOleInPlaceActiveObject are the reasons why.