摘要:
System.Management 命名空间http://msdn.microsoft.com/ZH-CN/library/gg145024(v=vs.110).aspxManagementObjectSearcher Classhttp://msdn.microsoft.com/en-US/lib... 阅读全文
摘要:
1 开机启动public static bool SetAutoRun(string keyName, string filePath){ try { RegistryKey Local= Registry.LocalMachine; RegistryKey ... 阅读全文
摘要:
遍历所有字体InstalledFontCollection MyFont = new InstalledFontCollection();FontFamily[] MyFontFamilies = MyFont.Families;List installedFontNames = new List(... 阅读全文
摘要:
using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using Syste... 阅读全文
摘要:
1. 引入命名空间using System.Web.Script.Serialization;2. 解析 Json 为 Dictionary 类型JavaScriptSerializer js = new JavaScriptSerializer();return js.Deserialize(st... 阅读全文
摘要:
Win32_Printer classhttp://msdn.microsoft.com/zh-cn/library/aa394363.aspx1. 设置默认打印机using System;using System.Collections.Generic;using System.Linq;usin... 阅读全文
摘要:
http://www.cnblogs.com/peterzb/archive/2009/07/19/1526555.html1. 生成缩略图. /// /// 生成缩略图 /// /// 源路径 /// 目标路径 ... 阅读全文
摘要:
1.http://www.sharejs.com/codes/2. http://msdn.microsoft.com/zh-cn/library/vstudio/gg145045(v=vs.100).aspx3.http://www.open-open.com/http://startbootst... 阅读全文
摘要:
// By using the ColorTranslator you can easily convert color values// definied in the hexadecimal format (like it is used in HTML)Color Color1 = Syste... 阅读全文