c#园

2013年8月7日

c# 禁用 webBrowser 声音(转)

摘要: const int FEATURE_DISABLE_NAVIGATION_SOUNDS = 21; const int SET_FEATURE_ON_PROCESS = 0x00000002; [DllImport("urlmon.dll")] [PreserveSig] [return: MarshalAs(UnmanagedType.Error)] static extern int CoInternetSetFeatureEnabled( int FeatureEntry, ... 阅读全文

posted @ 2013-08-07 14:09 要麻 阅读(747) 评论(0) 推荐(0)

2013年3月12日

webbrowser 实现“图片另存为…”功能

摘要: //以下是ToolStripMenuItem.Click事件中的内容try { ContextMenuStrip cms = (ContextMenuStrip)((ToolStripMenuItem)sender).GetCurrentParent(); SzqControls.ExWebBrowser browser = GetBrowser(sender); Point cpoint = browser.PointToClient(cms.Bounds.Location); Ht... 阅读全文

posted @ 2013-03-12 17:49 要麻 阅读(1893) 评论(1) 推荐(0)

2013年3月10日

Webbrowser过滤部分脚本内容

摘要: private void webBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e) { HtmlElementCollection cn = webBrowser1.Document.All; foreach (HtmlElement et in cn) { if (et.TagName.ToLower() == "script") { ... 阅读全文

posted @ 2013-03-10 22:58 要麻 阅读(341) 评论(0) 推荐(0)

2010年12月2日

c#数组去重的几个算法

摘要: 对List泛型去重 阅读全文

posted @ 2010-12-02 10:19 要麻 阅读(1473) 评论(0) 推荐(0)