try { Assembly assembly = Assembly.GetAssembly(typeof(SpiceLogic.WinHTMLEditor.HT
[更多…]-
c# 反射一个internal static class中的field
-
[转] – C#编写COM组件
1、新建一个类库项目 2、将Class1.cs改为我们想要的名字 问是否同时给类改名,确定 3、修改Properties目录下面的AssemblyInfo.cs ComVisible属性设置为True
[更多…] -
MSHTML: clear the undo / redo buffer of MSHTML
To clear the undo stack of MSHTML control you can use undo manager service. When enabling and disabl
[更多…] -
[轉] – C#: Lower Case All XML Tags with Regex
Sometimes when accepting an XML document from an uncontrolled source using Linq to XML, it’s useful
[更多…] -
C# 防止WinForm重复运行
方法一:Process查找方法 1: using System; 2: using System.Collections.Generic; 3: using System.Windows
[更多…] -
c# 跨域(CROSS-DOMAIN)取得Document对象
1: // FREE code from CODECENTRIX 2: // http://www.codecentrix.com/ 3: // http://codecentrix.blogspot
[更多…] -
Image <=> base64 string
using System;using System.Windows.Forms;using System.IO;using System.Drawing;usi
[更多…] -
【引用】WebRequest和WebBrowser同时登陆,使用同一个sessionID
针对于使用WebBrowser控件浏览网页,在其Document.Cookie中找不到SessionID信息时, 则使用WebRequest发送请求,使用response.Headers[“
[更多…] -
[转] – save pictures from MS Word(从Word中保存图片对象)
作为word文档解析的一部分,图片的提取非常的重要。在google上搜索word图片提取找到的基本是VBA的方式,写一段脚本嵌入word中然后执行这样子,一来不熟悉,二来也不符合我对word文档处理的
[更多…]