I didn't know where to put this, this was the closest to VB 2008.
I have a code, that when you click a button it takes you to a login webpage, puts in the information that you typed. Then presses submit. kind of like a quick login. But for some reason it always skips the part when it should navigate to the login webpage.
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
WebBrowser1.Navigate ("http://thepheed.net/Login.php")
Button5.Visible = False
Label1.Visible = False
Label2.Visible = False
TextBox1.Visible = False
TextBox2.Visible = False
CheckBox1.Visible = False
CheckBox2.Visible = False
Button6.Visible = False
Label3.Visible = True
Label4.Visible = True
Button7.Visible = True
WebBrowser1.Document.All("username").InnerText = TextBox1.Text
WebBrowser1.Document.All("password").InnerText = TextBox2.Text
Label4.Text = My.Settings.Username
WebBrowser1.Document.All.Item("Submit").Focus()
SendKeys.Send("{Enter}")
If CheckBox1.Checked = True Then
My.Settings.Username = TextBox1.Text
My.Settings.Save()
My.Settings.Reload()
Label4.Text = My.Settings.Username
End If
If CheckBox2.Checked = True Then
My.Settings.Password = TextBox2.Text
My.Settings.Save()
My.Settings.Reload()
End If
End Sub