比如axWebBrowser控件实现浏览器打开了某个注册页面,可否不用手工填写,用程序来完成呢?
有没有实现这个的办法呢,或者有类似的方法,请教各位高人~我已经自己把自己绕进去了~呵呵,多谢~

解决方案 »

  1.   

    mshtml.IHTMLInputElement userId = (mshtml.IHTMLInputElement)((mshtml.IHTMLDocument2)this.axWebBrowser1.Document).all.item("userid",0);
    userId.value = this.textBox1.Text; mshtml.IHTMLInputElement pwd = (mshtml.IHTMLInputElement)((mshtml.IHTMLDocument2)this.axWebBrowser1.Document).all.item("psw",0);
    pwd.value = this.textBox2.Text; mshtml.HTMLFormElement form111 = (mshtml.HTMLFormElement)((mshtml.IHTMLDocument2)this.axWebBrowser1.Document).all.item("form_login",0);
    form111.submit(); //mshtml.IHTMLElement Element = (mshtml.IHTMLElement)((mshtml.IHTMLDocument2)this.axWebBrowser1.Document).all.item("submit",0);
    //Element.click();