摘要: 基本功能达到了,有些自己修改了下,不好的地方,欢迎指正!下载地址:http://files.cnblogs.com/xiyueD/HeadFirst_07_DogRace.7z赛狗类代码using System;using System.Collections.Generic;using Syste... 阅读全文
posted @ 2014-08-06 12:06 西月 阅读(2769) 评论(1) 推荐(1) 编辑
摘要: 参考http://blog.csdn.net/yuzhongchun/article/details/11990571using System.Net;namespace Network_01{ public partial class Main : Form { publ... 阅读全文
posted @ 2014-07-28 15:32 西月 阅读(232) 评论(0) 推荐(0) 编辑
摘要: using Microsoft.Win32; //操作注册表需要引用的空间private void but_Del_Click(object sender, EventArgs e) { //指定路径 RegistryKey key = Registry.LocalMachine; RegistryKey Sof... 阅读全文
posted @ 2014-05-22 14:00 西月 阅读(369) 评论(0) 推荐(0) 编辑
摘要: NPOI 官方网站 http://npoi.codeplex.com/ 加载NPOI.DLL ,引用这两个命名空间 using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; #region NPOI DataGridView 导出 EXCEL /// /// NPOI DataGridView 导出... 阅读全文
posted @ 2014-05-15 13:27 西月 阅读(2336) 评论(1) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices; //调用DLL需要引用空间using System.Management; //获取计算机硬件信息需要引用的空间,需要添加引用using System.Windows.Forms;using... 阅读全文
posted @ 2014-05-14 14:55 西月 阅读(458) 评论(0) 推荐(1) 编辑
摘要: using System.Runtime.InteropServices;[DllImport("kernel32.dll", EntryPoint = "GetSystemDefaultLCID")] public static extern int GetSystemDefaultLCID(); [DllImport("kernel32.dll", Entry... 阅读全文
posted @ 2014-05-14 10:17 西月 阅读(131) 评论(0) 推荐(0) 编辑