[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.
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!
Re: Make a webpage load in Webbrowser inside a TabPage
Quote:
Originally Posted by
dunfiddlin
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.
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.
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.