摘要: System.Management 命名空间http://msdn.microsoft.com/ZH-CN/library/gg145024(v=vs.110).aspxManagementObjectSearcher Classhttp://msdn.microsoft.com/en-US/lib... 阅读全文
posted @ 2014-07-19 14:43 立己达人 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1 开机启动public static bool SetAutoRun(string keyName, string filePath){ try { RegistryKey Local= Registry.LocalMachine; RegistryKey ... 阅读全文
posted @ 2014-07-11 11:44 立己达人 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 遍历所有字体InstalledFontCollection MyFont = new InstalledFontCollection();FontFamily[] MyFontFamilies = MyFont.Families;List installedFontNames = new List(... 阅读全文
posted @ 2014-07-10 15:08 立己达人 阅读(2908) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using Syste... 阅读全文
posted @ 2014-07-09 09:04 立己达人 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 1. 引入命名空间using System.Web.Script.Serialization;2. 解析 Json 为 Dictionary 类型JavaScriptSerializer js = new JavaScriptSerializer();return js.Deserialize(st... 阅读全文
posted @ 2014-07-07 11:37 立己达人 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Win32_Printer classhttp://msdn.microsoft.com/zh-cn/library/aa394363.aspx1. 设置默认打印机using System;using System.Collections.Generic;using System.Linq;usin... 阅读全文
posted @ 2014-07-05 10:17 立己达人 阅读(3315) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/peterzb/archive/2009/07/19/1526555.html1. 生成缩略图. /// /// 生成缩略图 /// /// 源路径 /// 目标路径 ... 阅读全文
posted @ 2014-07-03 16:08 立己达人 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2014-07-02 17:10 立己达人 阅读(239) 评论(0) 推荐(0) 编辑
摘要: // By using the ColorTranslator you can easily convert color values// definied in the hexadecimal format (like it is used in HTML)Color Color1 = Syste... 阅读全文
posted @ 2014-07-02 17:07 立己达人 阅读(1639) 评论(0) 推荐(0) 编辑
摘要: using System.Windows.Forms;using System.Runtime.InteropServices;using System.IO;[DllImport("kernel32.dll", SetLastError = true)]static extern int Writ... 阅读全文
posted @ 2014-07-01 18:39 立己达人 阅读(680) 评论(0) 推荐(0) 编辑