Well I hope this is the right section since I can't figure out where to post for vb 2008 express. Anyway I'm trying to get my program to search for a html element and if it finds it, do something. I just started programming vb yesturday and have little programming knowledge. I'm learning as I go and thats how I learn.

Code:
  Private Sub Connect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Connect.Click
        WebBrowser1.Navigate(AdressBox.Text)
        Dim Element As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName(tagName:="login")
        ' If (Element) Then

        ' End If
    End Sub
I keep getting a null reference error no matter what combinations I try. I want it to search for the login name and if there is one then do the login procedure I have setup. I want to do this for a image later but I need to learn this first. I know that this tag name = login and is NOT a id. Any help is good thanks. Oh I do my research and wouldn't ask if I felt like I could find it.