It still isn't working. I apologize if I'm a bit retarded at times. I really am new at this and I'm trying to grasp what I'm doing. Did I insert the code into the right spot? Code below:
Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim webBrowserDocument As HtmlDocument = WebBrowser1.Document Dim hec As HtmlElementCollection = webBrowserDocument.GetElementsByTagName("input") For Each element As HtmlElement In hec If element.GetAttribute("name") = "Login" Then WebBrowser1.Document.Forms(0).InvokeMember("button_submit") End If Next End Sub




Reply With Quote