|
-
Aug 19th, 2012, 10:20 AM
#1
Thread Starter
New Member
[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.
-
Aug 19th, 2012, 10:36 AM
#2
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!
-
Aug 19th, 2012, 10:45 AM
#3
Thread Starter
New Member
Re: Make a webpage load in Webbrowser inside a TabPage
 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.
-
Aug 19th, 2012, 01:04 PM
#4
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.
-
Aug 20th, 2012, 02:16 AM
#5
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|