Results 1 to 15 of 15

Thread: [RESOLVED] Need help sending data to webbrowser

Hybrid View

  1. #1
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: Need help sending data to webbrowser

    This works for me.

    VB Code:
    1. Dim PageComplete As Boolean
    2.  
    3. Private Sub cmdLogin_Click()
    4. 'wb1 = webbrowser control
    5. wb1.Document.All("email").Value = "[email protected]" 'email address
    6. wb1.Document.All("password").Value = "YourPassword" 'password
    7. wb1.Document.Forms("sign-in").submit 'login
    8. End Sub
    9.  
    10. Private Sub Form_Load()
    11. 'wb1 = webbrowser control
    12. wb1.Navigate ("https://www.amazon.com/gp/flex/sign-in/select.html/102-2175624-5181701?ie=UTF8&protocol=https")
    13.  
    14. Do Until PageComplete = True
    15.     DoEvents
    16. Loop
    17.  
    18. End Sub
    19.  
    20. Private Sub wb1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
    21.  
    22.     If pDisp = wb1 Then
    23.     PageComplete = True
    24.     End If
    25.    
    26. End Sub

  2. #2

    Thread Starter
    Addicted Member Jazz00006's Avatar
    Join Date
    Feb 2006
    Posts
    185

    Re: Need help sending data to webbrowser

    Ahh, so its Document.All, thanks alot ^.^

  3. #3
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: [RESOLVED] Need help sending data to webbrowser

    No probs

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