2010年11月25日

摘要: 引用柯 的 executereader与executescalar这2个有什么区别 ExecuteReader:可以读一个表的记录,只能读不能写ExecuteScalar:只能读一条记录,一般用来判断数据库是否有数据等,只能读不能写ExecuteNonQuery:可以写以可以读,首先,我们知道这三个东东应该是ADO.NET中对数据库中操作的CMD,我们知道,如果我们要进行一个网让建设,必然在这个过... 阅读全文
posted @ 2010-11-25 12:58 胖子黎 阅读(3645) 评论(0) 推荐(0) 编辑

2010年11月24日

摘要: asp.net 读取并修改config文件实现代码 1. 向项目添加app.config文件: 右击项目名称,选择“添加”→“添加新建项”,在出现的“添加新项”对话框中,选择“添加应用程序配置文件”;如果项目以前没有配置文件,则默认的文件名称为“app.config”,... 阅读全文
posted @ 2010-11-24 12:20 胖子黎 阅读(1845) 评论(2) 推荐(1) 编辑

2010年11月17日

摘要: //看了原来的例子,我真的是弄昏了。。结果还是按照自己写的。// DinnerParty.CS 源码:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace DinnerPary.HeadFirst.Book{ public class DinnterParty { pu... 阅读全文
posted @ 2010-11-17 01:12 胖子黎 阅读(441) 评论(0) 推荐(0) 编辑

2010年11月11日

摘要: //本来看似非常简单的。。程序是一个界面。左边一个提示有个 checkbox 提示用户"我知道了,请不要再显示",右边是运行QQ的一个按钮。但是弄的时候弄了四个小时左右。经常是调试的时候是对的,但是有的时候点了按钮过后没有反映,//不能够运行外部程,//Events() 方法过后好些,但是偶尔还是会出现这情况,最后再加上。System.Threading.Thread.Sleep(2000); 得... 阅读全文
posted @ 2010-11-11 12:53 胖子黎 阅读(292) 评论(0) 推荐(0) 编辑

2010年11月9日

摘要: ///主程序.using System;using System.Collections.Generic;using System.Linq;using System.Text;using Resolution;using System.Collections;namespace Resolution{ public class Display { //public DEVMODE getReso... 阅读全文
posted @ 2010-11-09 13:41 胖子黎 阅读(833) 评论(0) 推荐(0) 编辑

2010年11月8日

摘要: using System;using System.Management; //还需要引用;using System.Collections;using System.Collections.Specialized;using System.Text;namespace Rainsoft.Management{ #region WMIPath public enum WMIPath { // 硬件... 阅读全文
posted @ 2010-11-08 17:38 胖子黎 阅读(413) 评论(0) 推荐(0) 编辑

2010年10月28日

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ public class Currency { public uint Dollars; public ushort Cents; public Currency() { }... 阅读全文
posted @ 2010-10-28 11:56 胖子黎 阅读(349) 评论(0) 推荐(1) 编辑

2010年10月19日

摘要: using System;using System.Collections.Generic;using System.Text;namespace AddMoney{ /// <summary> /// 此示例是模拟手机冲值过程 /// </summary> class Program { static void Main(string[] args) { Console.... 阅读全文
posted @ 2010-10-19 13:30 胖子黎 阅读(2442) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;namespace PrintNumbers{ ///<summary> ///画一个松数. ///</summary> /// public class DrawTree { int Width; public int Width1 { get... 阅读全文
posted @ 2010-10-19 00:01 胖子黎 阅读(522) 评论(0) 推荐(0) 编辑

2010年10月17日

摘要: using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace MyLunch{ /// <summary> /// switch的用法 /// </summary> /// public class Number { ArrayList l... 阅读全文
posted @ 2010-10-17 23:40 胖子黎 阅读(304) 评论(0) 推荐(0) 编辑

导航