2012年8月9日
摘要: 最近用到RichTextBox做一个文档;发现 RichTextBox 一个很“智能"的功能!怎么说呢!比如有一段文字” Hello Huobaby,Nice to me you!“我让你选择” Hello“ 中的 ”o“ 和 ”Huobaby“ 中的时候,你是选择不到的,系统会很聪明的帮你把 ”Hello Huobaby“全都选择了;据说这是优化个的功能,有时候真的很方便,但有时候也很让人头疼啊!因为我的文档用不到这个功能,ok!把这个功能关掉吧!但问题来了……MSDN说:http://technet.microsoft.com/zh-cn/library/system.windo 阅读全文
posted @ 2012-08-09 23:32 huobaby 阅读(1150) 评论(0) 推荐(0) 编辑
  2012年7月11日
摘要: View Code using System;using System.Collections.Generic;using System.Text;using Microsoft.Win32; //对注册表操作using System.Collections; //使用Arraylistusing System.Security.Cryptography;//加密解密using System.IO; //文件操作using System.Runtime.InteropServices;//调用DLL DllImportusing System.Management; //获取硬件信息u... 阅读全文
posted @ 2012-07-11 23:15 huobaby 阅读(8310) 评论(0) 推荐(0) 编辑
  2012年7月9日
摘要: 通过LINQ to Objects 可以使用 LINQ 直接查询任何 IEnumerable<T> 或 IQueryable<T> 集合(例如string[]、 int[] 和 List<T>),而不需要使用直接的 LINQ 提供程序或 API。一、LINQ to Objects假设有一个类型为 string 的数组,该数组包含姓名列表。下面的程序输出该字符串数组中以字符G开头的所有姓名:using System;using System.Collections.Generic;using System.Linq;using System.Text;name 阅读全文
posted @ 2012-07-09 17:17 huobaby 阅读(245) 评论(0) 推荐(0) 编辑