calfred2808

Website Login

Jun 18th, 2016
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.59 KB | None | 0 0
  1. Public Class Form1
  2.  
  3.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  4.         WebBrowser1.Navigate("http://login.yahoo.com/")
  5.     End Sub
  6.  
  7.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  8.         WebBrowser1.Document.GetElementById("login").SetAttribute("value", TextBox1.Text)
  9.         WebBrowser1.Document.GetElementById("passwd").SetAttribute("value", TextBox2.Text)
  10.  
  11.         WebBrowser1.Document.GetElementById(".save").InvokeMember("click")
  12.     End Sub
  13.  
  14. End Class
Add Comment
Please, Sign In to add comment