[转载]webBrowser 模拟登录 – armyfai – 博客园.
webBrowser1.Document.GetElementById("txtUsername").InnerText = "sdsy";//fill name webBrowser1.Document.GetElementById("txtPassword").InnerText = "1"; HtmlElement formLogin = webBrowser1.Document.Forms["gin126lo"]; // formLogin.InvokeMember("submit"); HtmlElement btnSubmit = webBrowser1.Document.GetElementById("loginButton"); btnSubmit.InvokeMember("click");