|
-
Jul 11th, 2005, 03:03 PM
#1
Thread Starter
New Member
Microsoft WebBrowser
i am having quite a bit of trouble with the Microsoft WebBrowser (Previously known as Microsoft Internet Controls) COM Object in VB.NET and VJ#.NET.
I insert the component onto my form, leave the name as AxWebBrowser1, and go to the Form_Load() sub. I tell it to navigate to google on load with this line:
VB Code:
AxWebBrowser1.Navigate("http://www.google.com")
It compiles fine, no runtime errors or anything when I view the form containing it, but it doesn't load anything. It stays white.
As for VJ#.NET, which is what I need this most for, I use this line of code in frmWeb_Load:
VB Code:
axWebBrowser1.Navigate("http://www.google.com");
I cannot compile the program. I get this error:
Cannot find method 'Navigate(String)' in 'AxSHDocVw.AxWebBrowser'
Any ideas?
-
Jul 11th, 2005, 06:48 PM
#2
Re: Microsoft WebBrowser
There is a sample project I believe using this very COM control, in the "101 VB.NET Examples" downloadable from Microsoft. (See link in top of VB.NET forum)
Bill
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
|