modernsky2003

12 2007 档案

用Visual C#动态生成组件(http://www.hi-blue.com/technology/index/index_40_1.asp)
摘要:http://www.hi-blue.com/technology/index/index_40_1.asp 阅读全文

posted @ 2007-12-27 17:45 hekeneng 阅读(131) 评论(1) 推荐(0)

C#中动态创建控件及事件处理程序
摘要:using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; namespace Miner { /// /// Summar... 阅读全文

posted @ 2007-12-27 17:32 hekeneng 阅读(358) 评论(1) 推荐(0)

C#中常用的WEB方式的文件操作方法
摘要:C#追加文件 StreamWriter sw = File.AppendText(Server.MapPath(".")+"\\myText.txt"); sw.WriteLine("追逐理想"); sw.WriteLine("kzlll"); sw.WriteLine(".NET笔记"); sw.Flush(); sw.Close(); C#拷贝文件 string OrignFil... 阅读全文

posted @ 2007-12-20 17:22 hekeneng 阅读(292) 评论(0) 推荐(0)

C#中遍历文件夹目录的问题
摘要:递归实现查找目录下的所有子目录和文件 public void FindFile(string dir) //参数为指定的目录 { //在指定目录及子目录下查找文件,在listBox1中列出子目录及文件 DirectoryInfo Dir=new DirectoryInfo(dir); try { for... 阅读全文

posted @ 2007-12-20 16:41 hekeneng 阅读(229) 评论(0) 推荐(0)

C# 操作文件夹及文件
摘要:class Program { /**//// /// 追加文件,文件不存在则创建,存在则向文件写数据 /// /// /// public static void WriteFile(string users,string content) { ... 阅读全文

posted @ 2007-12-20 15:49 hekeneng 阅读(427) 评论(0) 推荐(0)

c#1.1代码(三)
摘要:if(Dt.Rows.Count > 0) { //ComFgroupfID; ComFgroupfID.DataSource = Dt; ComFgroupfID.DisplayMember = Dt.Columns["fname"].ToString(); ComFgroupfID.ValueMember = Dt.Columns["fi... 阅读全文

posted @ 2007-12-18 11:17 hekeneng 阅读(317) 评论(0) 推荐(0)

c#1.1代码(二)
摘要:/// /// /// /// /// /// /// public void RemoteDownData(string Fid,string fname,string FPath,bool IsDel) { DirectoryInfo Dir = new DirectoryInfo(FPath); if(!Dir.Exists) ... 阅读全文

posted @ 2007-12-17 16:33 hekeneng 阅读(390) 评论(0) 推荐(0)

C#代码
摘要:using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using rulebase; using System.Data; using WindControl; namespace DNCMANAGER.UserSi... 阅读全文

posted @ 2007-12-17 16:09 hekeneng 阅读(334) 评论(0) 推荐(0)

模糊查询SQL
摘要:sql="select fid,fname from dnc_sys_employee where frolefid like '%" +Obj.ToString()+"%' order by fname"; 阅读全文

posted @ 2007-12-14 16:48 hekeneng 阅读(140) 评论(0) 推荐(0)

C#文件及目录处理
摘要:public string DisposeDirc(string SendPath,bool DisposeType) { try { if(SendPath.Substring(SendPath.Length - 1,1) != @"\") SendPath = SendPath + @"\"; DirectoryInfo dirc = new Di... 阅读全文

posted @ 2007-12-14 15:03 hekeneng 阅读(234) 评论(0) 推荐(0)

C#删除目录和目录下的所有文件
摘要:/// /// /// /// /// /// /// public void RemoteDownData(string Fid,string fname,string FPath,bool IsDel) { DirectoryInfo Dir = new DirectoryInfo(FPath); if(!Dir.Exists) ... 阅读全文

posted @ 2007-12-14 14:52 hekeneng 阅读(6098) 评论(5) 推荐(0)

C#2003 WINFORM 常用代码(一)
摘要:private void ItemSel(bool IsSel) { for(int i=0;i'9')&&e.KeyChar!=13&&e.KeyChar!=8) { e.Handled=true; MessageBox.Show("您只能输入数字,不能输入其它字符!","提示信息",MessageBoxButtons.OK ,MessageBoxIcon.... 阅读全文

posted @ 2007-12-14 14:35 hekeneng 阅读(415) 评论(0) 推荐(0)

c#中使用 crystal reports (水晶报表)的打包和部署问题
摘要:下午搜了一下帖子,终于搞定了 1)新建“安装和部署项目”-->“安装向导” (2)选择项目类型(这里选“创建用于windows应用程序的安装程序”)-->下一步 (3)选择要包含的文件:要部署使用 Crystal Reports for Visual Studio .NET 2003 的程序,需要添加合并模块(在解决方案资源管理器中tree的顶端节点右键-->添加). Cryst... 阅读全文

posted @ 2007-12-13 16:26 hekeneng 阅读(443) 评论(0) 推荐(0)

WEB程序SQLSERVER 数据库恢复与备份
摘要:Math.DivRem(DateTime.Now.Day,2,out residiu); if(residiu==0) Name="Double";else Name="Single"; SaveDir=SaveDir+Name+".dat"; SaveDir=@"BACKUP DATABASE [crib2] TO DISK = N'd:\20070717\crib2.b... 阅读全文

posted @ 2007-12-13 11:11 hekeneng 阅读(226) 评论(0) 推荐(0)

导航