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. multi-tab Browser

multi-tab Browser

Scheduled Pinned Locked Moved C#
comtoolshelpquestion
2 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.
  • D Offline
    D Offline
    dsl fahk
    wrote on last edited by
    #1

    I have tried to make a multi-tab browser using some of the information from this[^] post. I have a button that opens up a new tab with a browser in it. But when i go back to the other tab, the browser is gone from that tab! The code i used is...

    tabControlBrowser.TabPages.Add("http://www.google.com");
    int tabCount = tabControlBrowser.TabCount;
    tabControlBrowser.TabPages[tabCount - 1].Controls.Add(webBrowser);
    tabControlBrowser.SelectTab(tabCount - 1);

    Your help is appreciated!!!

    C 1 Reply Last reply
    0
    • D dsl fahk

      I have tried to make a multi-tab browser using some of the information from this[^] post. I have a button that opens up a new tab with a browser in it. But when i go back to the other tab, the browser is gone from that tab! The code i used is...

      tabControlBrowser.TabPages.Add("http://www.google.com");
      int tabCount = tabControlBrowser.TabCount;
      tabControlBrowser.TabPages[tabCount - 1].Controls.Add(webBrowser);
      tabControlBrowser.SelectTab(tabCount - 1);

      Your help is appreciated!!!

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      dsl/fahk wrote:

      tabControlBrowser.TabPages[tabCount - 1].Controls.Add(webBrowser);

      You're moving your webbrowser control between pages, instead of creating a new one

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      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