Results 1 to 3 of 3

Thread: IE7 and webcontrol errors

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Osaka
    Posts
    200

    IE7 and webcontrol errors

    This is error free code with added reference to Microsoft Internet Control.

    Code:
    Private Sub Form_Load()
        WebBrowser1.Navigate "http://www.google.com/"
        WebBrowser1.Silent = True
    End Sub
    
    
    
    Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
        If (pDisp Is WebBrowser1.Application) Then
    
            If URL = "http://www.google.com/" Then 'test for google
    
                Dim HTML As HTMLDocument
                Set HTML = WebBrowser1.Document
                HTML.All.Item("q").Value = "static"
                HTML.All.Item("btnG").Click
            End If
    
        End If
    End Sub
    I get Run-Time Error -1 (fffffffe) and -2 (fffffffe) on document complete.

    please help.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Osaka
    Posts
    200

    Re: IE7 and webcontrol errors

    So nobody every seen this error?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Osaka
    Posts
    200

    Re: IE7 and webcontrol errors

    so you all guys left vb6 and using web browser control

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