title: vb.net Web Browser Login
body: <p>Hello i am Making an application To login To Nexon.net , I cant Get it to Work Because The Text Fields Dont Seem To have ID to Use <code>GetElementByID</code> ....</p>
  
  <p>This is The webpage <a href="http://www.nexon.net/" rel="nofollow">http://www.nexon.net/</a></p>
  
  <p>and this is the Code i tried But It doesnt Work =/</p>
  
  <pre><code>Dim Username, Password As String
      Username = TextBox1.Text
      Password = TextBox2.Text
  
  
      WebBrowser1.Document.GetElementById("userID").SetAttribute("value", Username)
      WebBrowser1.Document.GetElementById("password").SetAttribute("value", Password)
      WebBrowser1.Document.GetElementById("gnt_login_submit").InvokeMember("click")
  </code></pre>
  
  <p>I tried to use this to verify login But Does not work</p>
  
  <pre><code>If (Not WebBrowser1.Document.All.Item("gnt_play_button") Is Nothing) Then
          MsgBox("Incorrect Username/password , ", 0, "Login error!")
  </code></pre>