singleflower(shifan(愿父亲安息)) 
Webbrowser控件如何用,請賜教?chenjinaban(陈进) 
不想用鉤子,感覺太麻煩:)

解决方案 »

  1.   

    axWebBrowser1.Navigate("www.google.com",ref Zero, ref EmptyString, ref EmptyString, ref EmptyString);
    mshtml.HTMLDocument wd = (HTMLDocument)axWebBrowser1.Document;
    //获取输入框
    HTMLInputElement e1 = (HTMLInputElement)wd.getElementById(username);
    e1.value = this.textBox1.Text;   
    HTMLInputElement e2 = (HTMLInputElement)wd.getElementById(pwd);
    e2.value = this.textBox2.Text;
    //获取按钮
    mshtml.HTMLFormElement he = (HTMLFormElement)wd.forms.item(form, 0);
    //提交网页
    he.submit();还不如用HttpWebRequest