Prevent from displaying of Windows Security window
问题 I have some router config page URLs, I have to load them, set sth and save it. I'm using webbrowser control and .Net 4.5 and C# language. But every time a page loads, windows security pops up and asks for username and password. It happens for each URL. How can I prevent from this? Usernames and passwords are same for all of the URLs. How can I use hardcode to set username and password for all of them?! 回答1: You need to provide an implementation of IAuthenticate COM interface to the WebBrowser