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. Visual Basic
  4. TAB CONTROLS

TAB CONTROLS

Scheduled Pinned Locked Moved Visual Basic
question
4 Posts 3 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.
  • L Offline
    L Offline
    len_ems
    wrote on last edited by
    #1

    Hello... I am using a tab control in my project. How can I display a webpage when I choose one of the tabs? Thank you...:)

    D 1 Reply Last reply
    0
    • L len_ems

      Hello... I am using a tab control in my project. How can I display a webpage when I choose one of the tabs? Thank you...:)

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      First, add a reference to Microsoft's WEb Browser control to your project:

      1. Bring up your Toolbox window and click on the My User Controls tab
      2. Right-click in the Toolbox window and click Add/Remove Items...
      3. Click on the COM Component tab.
      4. Scroll down to Microsoft Web Browser and click the checkbox next to it, then OK.

      At this point, you should see a little world icon in your Toolbox labeled Microsoft Web Browser.

      5. Click on your tab tab in the designer to bring up the page you want this on.
      6. Drag a Web Browser Control from your Toolbox onto the tab page.

      Now all you have to do is set the properties of the borwser to arrange it the way you want, like if you want an address bar showing, status bar, menu bar, ... Than when that tab is clicked, your event handler should do something like this:

      AxWebBrowser1.Navigate("http://www.google.com")
      

      or some other web page, perhaps stored locally:

      AxWebBrowser1.Navigate("C:\\testdir\\filename.html")
      

      RageInTheMachine9532

      A 1 Reply Last reply
      0
      • D Dave Kreskowiak

        First, add a reference to Microsoft's WEb Browser control to your project:

        1. Bring up your Toolbox window and click on the My User Controls tab
        2. Right-click in the Toolbox window and click Add/Remove Items...
        3. Click on the COM Component tab.
        4. Scroll down to Microsoft Web Browser and click the checkbox next to it, then OK.

        At this point, you should see a little world icon in your Toolbox labeled Microsoft Web Browser.

        5. Click on your tab tab in the designer to bring up the page you want this on.
        6. Drag a Web Browser Control from your Toolbox onto the tab page.

        Now all you have to do is set the properties of the borwser to arrange it the way you want, like if you want an address bar showing, status bar, menu bar, ... Than when that tab is clicked, your event handler should do something like this:

        AxWebBrowser1.Navigate("http://www.google.com")
        

        or some other web page, perhaps stored locally:

        AxWebBrowser1.Navigate("C:\\testdir\\filename.html")
        

        RageInTheMachine9532

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Dear RageInTheMachine9532, Your advice really helped us. A very big thank you to you..... len_ems

        D 1 Reply Last reply
        0
        • A Anonymous

          Dear RageInTheMachine9532, Your advice really helped us. A very big thank you to you..... len_ems

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          No problem. Thank you. RageInTheMachine9532

          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