1 2 3 4 5 6 7 8 9 10 11 12 13 14
| Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Navigate("http://login.website.co/") //ici ton url
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Document.GetElementById("login").SetAttribute("value", TextBox1.Text) //ici ton log
WebBrowser1.Document.GetElementById("passwd").SetAttribute("value", TextBox2.Text)// ici ton mot de passe
WebBrowser1.Document.GetElementById(".save").InvokeMember("click")
End Sub
End Class |
Partager