随笔分类 -  C#

C#控制台程序实现鼠标左右手习惯切换
摘要:最近患上了鼠标手。比较疼,影响到了工作。 干脆左手用起了鼠标。每次都要到控制面板去修改设定比较繁琐 所以决定写个小工具。using System;using System.Collections.Generic;using System.Linq;using System.Text;using Sy... 阅读全文

posted @ 2015-05-11 11:12 胡一凡 阅读(380) 评论(0) 推荐(0)

C# 获取 IPv4地址
摘要:网上搜罗了的代码 做了下改进。 B/S C/S 都能用。 1 private static string GetIP4Address() 2 { 3 string IP4Address = String.Empty; 4 5 if (... 阅读全文

posted @ 2014-07-10 16:02 胡一凡 阅读(799) 评论(0) 推荐(0)

检查安装.NET Framework版本的 工具
摘要:随手抄了一段微软的代码 小工具用于检查.net 版本下载地址:http://pan.baidu.com/s/1jGsmm2M效果:output.txtv2.0.50727 2.0.50727.4927 SP2v3.0 3.0.30729.4926 SP2v3.5 3.5.30729.4926 ... 阅读全文

posted @ 2014-04-14 15:42 胡一凡 阅读(260) 评论(0) 推荐(0)

C# 格式化字符 —— 首字母大写
摘要:在网上搜罗了两种方式整理下1.单个词语1 System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(string str);2.句子Strings.StrConv("str.str.str str_str", VbStrConv.ProperCase, System.Globalization.CultureInfo.CurrentCulture.LCID);出处http://blog.csdn.net/a497785609/article/details/4479055http:// 阅读全文

posted @ 2013-08-21 13:42 胡一凡 阅读(1418) 评论(0) 推荐(0)

C# 使用 WebClient 从Web 地址下载文件到本地.
摘要:简单的下载方式.控制台测试代码如下: 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Net; 6 using System.Text; 7 8 namespace ConsoleApplication2 9 {10 class Program11 {12 static void Main(string[] args)13 {14 new WebClient... 阅读全文

posted @ 2013-04-27 16:31 胡一凡 阅读(542) 评论(0) 推荐(0)

导航