摘要: 获取目标对象的当前内部状态,并将状态保存在对象外部,以后可以从将目标对象恢复到保存时的状态。代码如下: using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;namespa 阅读全文
posted @ 2012-02-20 13:42 无主之城 阅读(278) 评论(0) 推荐(0) 编辑
摘要: //第一种创建临时表create table #tempArea( ID int IDENTITY (1,1) not null, --创建列ID,并且每次新增一条记录就会加1 DocCode varchar(100), AreaName varchar(50), AreaCode varchar... 阅读全文
posted @ 2011-08-30 11:44 无主之城 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 1、打包的时候选择系统依赖里选择:netframework2.0 和 windows installer3.1 ,如果有报表还要选中水晶报表。 2、windows2000上要先安装SP4,及更新汇总 3、检查IE版本是否在5.1以上,如果不是还要装5.1以上IE版本 4、以上都配置好后就可以正常安装 阅读全文
posted @ 2011-07-26 16:24 无主之城 阅读(556) 评论(0) 推荐(0) 编辑
摘要: 今天学到了一个很有用的知识点,多个窗体调用子窗体时,让子窗体和父窗体降低耦合度。同时子窗体的修改还可以及时反馈到父窗体。代码如下:为了实现这个例子,你需要准备2个窗口,一个叫MainForm,上面至少需要一个richTextBox,两个工具栏按钮。另一个叫 MyDialog 的子窗口,上面有一个 textBox1,一个 Button,作为确定按钮。 //父窗体privateMyDialogm_dlg;privatevoidbutton1_Click(objectsender,EventArgse){if(m_dlg==null){m_dlg=newMyDialog(richTextBox1.T 阅读全文
posted @ 2011-07-01 11:20 无主之城 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 一、用C#自带的StopWatch函数using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics;namespace StopWatch{ cla... 阅读全文
posted @ 2010-12-13 11:27 无主之城 阅读(1163) 评论(0) 推荐(0) 编辑
摘要: Hello,Cnblogs! 阅读全文
posted @ 2009-11-24 18:28 无主之城 阅读(189) 评论(0) 推荐(1) 编辑