Results 1 to 5 of 5

Thread: [RESOLVED] Make a webpage load in Webbrowser inside a TabPage

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2012
    Posts
    5

    Resolved [RESOLVED] Make a webpage load in Webbrowser inside a TabPage

    I am making a program which loads predefined webpages (www.xyz.com) in WebBrowser inside tab pages. The problem is that when i give the following code:

    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
    WebBrowser1.Navigate("http://www.abc.net/")
    WebBrowser2.Navigate("http://chat.xyz.com/")
    WebBrowser3.Navigate("http://www.123.asp")
    WebBrowser4.Navigate("http://www.098.com")
    End Sub

    this would not load the webpage. I presume because WebBrowser1, 2,3, and 4 are inside tabpages.

    Any idea how to correct this? I hope you understand what i said.

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Make a webpage load in Webbrowser inside a TabPage

    Doesn't need correcting. Works fine. Anything that doesn't load is not going to load on any other browser either!

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2012
    Posts
    5

    Re: Make a webpage load in Webbrowser inside a TabPage

    Quote Originally Posted by dunfiddlin View Post
    Doesn't need correcting. Works fine. Anything that doesn't load is not going to load on any other browser either!
    The webpage opens for sure in my native browser. Note that i am opening the page inside the TabControl, the tabcontrol doesn't seem to take the command given in Form1_load.

  4. #4
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Make a webpage load in Webbrowser inside a TabPage

    Using your exact code and nothing else ...

    Attachment 90675Attachment 90677

    Unless your tabcontrol is on another form, it works.

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 2012
    Posts
    5

    Resolved Re: Make a webpage load in Webbrowser inside a TabPage

    yes, it works now! the problem was because of an extra "/" symbol after the webpage links. Removing it made the page load correctly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width