Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- WebBrowser1.Navigate("http://login.yahoo.com/")
- 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)
- WebBrowser1.Document.GetElementById("passwd").SetAttribute("value", TextBox2.Text)
- WebBrowser1.Document.GetElementById(".save").InvokeMember("click")
- End Sub
- End Class
Add Comment
Please, Sign In to add comment