CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2000
    Posts
    72

    help for webbrowser control

    i cant seem to use the webbrowser's navigate property. isnt it this control that i should use in order to navigate to a particular website??



  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: help for webbrowser control

    I'm not sure what kind of errors you are getting, but this code works fine for me:

    private Sub Form_Load()
    WebBrowser1.Navigate "http://www.stlvbug.org"
    End Sub

    private Sub WebBrowser1_DocumentComplete(byval pDisp as Object, URL as Variant)
    MsgBox "Done"
    End Sub




    Place a WebBrowser control on the form (dont rename it for this code) and hit F5.

    You should see the page comming down and then when it's finished, a message box should pop up indicating it's finished.

    Hope this helps,
    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

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

Featured