How do I redirect or avoid WebBrowser Control from Stealing Focus
Posted on 2007-12-21
I am trying to write a program that uses a WebBrowser control to automatically login to a particular website to upload data to the website. Basically, the UI of the website is poor and permits many input mistakes to happen, so I need to write a program which acts as a frontend to the hidden website. There is a usernameTextBox, userpasswordTextBox, and loginButton. I have the autologin functional, but when the main webpage loads, my usernameTextBox loses focus and becomes frustrating to input username and password.