1、新建一个类库项目 2、将Class1.cs改为我们想要的名字 问是否同时给类改名,确定 3、修改Properties目录下面的AssemblyInfo.cs ComVisible属性设置为True
[更多…]-
[转] – C#编写COM组件
-
.net 32位 / 64位判断
IntPtr.Size 属性值 此平台上的指针或句柄的大小,按字节计。此属性的值在 32 位平台上为 4,在 64 位平台上为 8。
[更多…] -
Command Identifiers
Command Identifiers .NET Framework 3.0 Command identifiers specify an action to take on the given ob
[更多…] -
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
[更多…] -
【引用】当点击ListView的列头时,对ListView排序
1.创建一个新的C#项目,窗体Form1会被默认创建。 2.向窗体添加一个ListView控件, 3.在Form1.cs中添加下面的代码: private ListViewColumnSor
[更多…] -
[转] – MSHTML选择文字
if (textRange != null) { if (pt.Y > 0) { textRange = (IHTMLTxtRange)document.selection.createRang
[更多…] -
网易博客的访问统计功能更新了,喜欢
之前一直想查看历史的访问量情况,但只能自己翻页查看,累~~ 现在好了,不但可以统计历史记录了,还增加了几个统计功能,不错,值得表扬一下。
[更多…] -
JSON Viewer
Project DescriptionThe JSON Viewer package is a set of 3 viewers available in the following flavors:
[更多…] -
【引用】js 相对完美的跨浏览器获取对象的outerHTML
最近在写htmlEditor 有时候需要对 各个浏览器执行execCommand生成的 代码做些格式化操作. 对于ie 确实没啥话说 即有outerHTML又有 document.selection.
[更多…] -
[转]Visual Studio 2008: Setup Project Targeting .NET Framework 2.0
environment: Visual Studio 2008, .NET/C# Project Targeting Framework 2.0, Standard Setup Project pro
[更多…]