Results 1 to 2 of 2

Thread: Microsoft WebBrowser

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    6

    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:
    1. 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:
    1. 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?

  2. #2
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    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
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

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