C# webbroser 自动点击JS弹出框? override ShowMessagewww.codeproject.com/KB/miscctrl/csEXWB.aspx 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://blog.csdn.net/jinjazz/archive/2007/12/02/1912577.aspx//using mshtml; //using SHDocVw; private void Form1_Load(object sender, EventArgs e) { this.webBrowser1.Navigate("http://localhost:28512/WebSite2/Default.aspx"); SHDocVw.WebBrowser wb = this.webBrowser1.ActiveXInstance as SHDocVw.WebBrowser; wb.NavigateComplete2 += new SHDocVw.DWebBrowserEvents2_NavigateComplete2EventHandler(wb_NavigateComplete2); } void wb_NavigateComplete2(object pDisp, ref object URL) { mshtml.IHTMLDocument2 doc = (this.webBrowser1.ActiveXInstance as SHDocVw.WebBrowser).Document as mshtml.IHTMLDocument2; doc.parentWindow.execScript("function alert(str){return ''}", "javascript"); } 谁能给个可以用的SVN的下载地址,SVN全称我忘记叫啥了。类似VSS的团队项目开发管理的软件。 Hashtable中的数据存储到数据库 vs2005IDE问题 自动生成查询窗体 问一个winform的DataGridView 的刷新问题 买了书,没源码,火,谁能提供,我寒假要看! C#程序画的图形怎样按一定角度旋转 《C# Windows程序设计》上的饼图“爆炸”效果的偏移量是怎么得到的? 学c#好,还是vb.net? 我已经装了VS.NET正式中文版,可是怎么不能解析.aspx文件???救救我 datagridview的一些简单问题 c#中数学运算
//using mshtml;
//using SHDocVw;
private void Form1_Load(object sender, EventArgs e)
{
this.webBrowser1.Navigate("http://localhost:28512/WebSite2/Default.aspx");
SHDocVw.WebBrowser wb = this.webBrowser1.ActiveXInstance as SHDocVw.WebBrowser;
wb.NavigateComplete2 += new SHDocVw.DWebBrowserEvents2_NavigateComplete2EventHandler(wb_NavigateComplete2);
} void wb_NavigateComplete2(object pDisp, ref object URL)
{
mshtml.IHTMLDocument2 doc = (this.webBrowser1.ActiveXInstance as SHDocVw.WebBrowser).Document as mshtml.IHTMLDocument2;
doc.parentWindow.execScript("function alert(str){return ''}", "javascript");
}