Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working with the Webbrowser Control in VB
Message
 
À
13/02/2003 13:43:43
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00752471
Message ID:
00752890
Vues:
23
This message has been marked as the solution to the initial question of the thread.
You can use the same code I have already gave you for IE with the WebBrowser!
Private mblnDownloadCompleted As Boolean

Private Sub Command1_Click()
    mblnDownloadCompleted = False
    With WebBrowser1
        .Navigate2 "www.hotmail.com"
        Do While Not mblnDownloadCompleted
            DoEvents
        Loop
        .Document.All("login").Value = "uid"
        .Document.All("passwd").Value = "pwd"
        .Document.Forms(0).Submit
    End With
End Sub

Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
    mblnDownloadCompleted = True
End Sub
>I would have to change the website to be able to pass the login/password to the webserver like that, wouldn't I? Right now, it is expecting a post from two text boxes.
>V
>PS - So no one knows where any browswer programming information is (other than the lousy SDK)?
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform