First, this is Visual Basic 4 / 5 / 6 i.e. classic VB forum. You're question is about VB.NET which has it's own
forum here in DaniWeb.
WebBrowser1.Focus() sets the focus to the webbrowser control but there's
no guarantee where the focus is in the web page its displaying.
Anyway, I got following key sequence to work:
WebBrowser1.Focus()
SendKeys.SendWait("+{TAB}") ' Tab back one step
SendKeys.SendWait("{TAB}") ' Tab forward one step
SendKeys.SendWait("userID")
SendKeys.SendWait("{TAB}")
SendKeys.SendWait("password")
SendKeys.SendWait("{Enter}")