c# 提交表单 axWebBrower

 mshtml.IHTMLDocument2 doc = (mshtml.IHTMLDocument2)axWebBrowser1.Document;
   mshtml.IHTMLFormElement f1 =(mshtml.IHTMLFormElement)doc.all.item ("form1",0);
   ((mshtml.IHTMLFormElement)(f1)).submit();
   mshtml.IHTMLElement Element = (mshtml.IHTMLElement)doc.all.item("button1", 0);
   Element.click();

你可能感兴趣的:(Web)