I am using a web browser control to autologin to a webpage. When I intially gives the username and password,it works well.
And for the second time it is not taking the username and password from the code.I dont know where it take from I get the err messeag as attached here.
And the code is

VB Code:
  1. wb1.Navigate "http://www.netwealth.com.au/"
  2.     Do Until wb1.ReadyState = READYSTATE_COMPLETE
  3.         DoEvents
  4.     Loop
  5. wb1.Document.login.username.Value = "usernamehere"
  6. wb1.Document.login.password.Value = "mypassword"
  7. wb1.Document.login.submit