摘要:
http://www.microsoft.com/china/community/Column/31.mspx 阅读全文
摘要:
http://www.microsoft.com/china/community/Column/31.mspx 阅读全文
摘要:
http://dev.csdn.net/develop/article/15/15113.shtm 阅读全文
摘要:
private void SaveImage(string fileName) { // Read the file into a byte array using (FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read)) ... 阅读全文
摘要:
命名空间 描述 Microsoft.DirectX 公共类和数学结构 ... 阅读全文
摘要:
/// /// 获取随机字符串(字符串由数字和字母组成) /// /// 字符串长度 /// static string GetRandomString(int stringLength) { StringBuilder strReturn = new StringBui... 阅读全文
摘要:
对于那些可以自行注册的对象链接和嵌入 (OLE) 控件,例如动态链接库 (DLL) 文件或 ActiveX 控件 (OCX) 文件,您可以使用 Regsvr32 工具 (Regsvr32.exe) 来将它们注册和取消注册。 Regsvr32.exe 的用法 RegSvr32.exe 具有以下命令行选项: Regsvr32 [/u] [/n] [/i[:cmdline]] dllname ... 阅读全文
摘要:
现在做的一个项目,偶然经过一次改动后,部署到客户的XP上后发现TreeView图标全部丢失的情况,然而在Windows2003下却一切正常,百思不得其解,后来在网上偶然发现这个原来是.NET的一个BUG原文和解决方法见 http://www.codeproject.com/buglist/EnableVisualStylesBug.asp或http://www.codeproject.com/cs... 阅读全文
摘要:
微软提供的System.IO.Directory不提供拷贝整个文件夹内容到其他目录的方法,所以自己写了一个 1 2 public class SKDirectory 3 { 4 static public void CopyTo(string sourceDirName, string destDirName) 5 { 6 ... 阅读全文
摘要:
1using System; 2using System.Collections.Generic; 3using System.Text; 4using System.IO; 5 6using ICSharpCode.SharpZipLib.Zip; 7 8namespace Zipper 9{ 10 public class Zipper 11 ... 阅读全文
摘要:
static protected internal long CountFolderLength(string FolderPath) { long folder_length = 0; System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(FolderPath); ... 阅读全文
|