Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Move a Webbrowser to a new window?

Move a Webbrowser to a new window?

Scheduled Pinned Locked Moved C#
csharpvisual-studiotutorialquestionlearning
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bog
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • B Bog

      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

      S Offline
      S Offline
      Stephane Rodriguez
      wrote on last edited by
      #2

      I believe you can't. Stuff like IOleClientSite, IOleInPlaceActiveObject are the reasons why.

      B 1 Reply Last reply
      0
      • S Stephane Rodriguez

        I believe you can't. Stuff like IOleClientSite, IOleInPlaceActiveObject are the reasons why.

        B Offline
        B Offline
        Bog
        wrote on last edited by
        #3

        OK. Dissapointing, but good to know. coming from you i believe it, thanks, "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups