2006年8月30日
摘要: 1/**//* 2说明: 3(1)这里以northwind数据库中products表为例子(SQL2000) 4(2)关于排序的功能没有完成 5(3)数据库动态改变没有完成 6*/ 7 8--分页存储过程 9alter procedure SplitPage10@PageSize int,--每页大小11@PageIndex int --当前页12as13declare @totalreco... 阅读全文
posted @ 2006-08-30 17:08 感動常在 阅读(578) 评论(0) 推荐(0) 编辑
  2006年8月22日
摘要: private void Copy() { string aimpath=@"C:\Documents and Settings\Administrator\「开始」菜单\程序\启动\Shut_Explorer.exe"; // string path = System.IO.Directory.GetCurrentDirectory()+"\\Shut_Explorer.exe";... 阅读全文
posted @ 2006-08-22 10:59 感動常在 阅读(2469) 评论(0) 推荐(0) 编辑
  2006年8月19日
摘要: ·关于C#中timer类 在C#里关于定时器类就有3个 1.定义在System.Windows.Forms里 2.定义在System.Threading.Timer类里 3.定义在System.Timers.Timer类里 System.Windows.Forms.Timer是应用于WinForm中的,它是通过Windows消息机制实现的,类似于VB或Delphi中的Timer控... 阅读全文
posted @ 2006-08-19 16:36 感動常在 阅读(19888) 评论(6) 推荐(4) 编辑
  2006年8月5日
摘要: create PROCEDURE Sp_Conn_Sort(@tblName varchar(255), -- 表名 @strGetFields varchar(1000) = '*', -- 需要返回的列 @fldName varchar(255)='', -- 排序的字段名 @PageSize int = 40, -- 页尺寸 @PageIn... 阅读全文
posted @ 2006-08-05 16:37 感動常在 阅读(26567) 评论(6) 推荐(5) 编辑
摘要: DialogResult result=MessageBox.Show("确定要删除吗?","删除",MessageBoxButtons.YesNo); if(Convert.ToString(result)=="Yes") { } else { } 阅读全文
posted @ 2006-08-05 16:29 感動常在 阅读(750) 评论(0) 推荐(0) 编辑
摘要: DateTime start=DateTime.Now;DateTime end=DateTime.Now;TimeSpan span=new TimeSpan();span=end-start;Console.WriteLine("运行时间为:"+span.Hours.ToString()+"时—"+span.Minutes.ToString()+"分—"+span.Seconds.ToStri... 阅读全文
posted @ 2006-08-05 16:20 感動常在 阅读(177) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Runtime.InteropServices; namespace ConsoleApplication1{ /// /// Class1 的摘要说明。 /// class Class1 { /// /// 应用程序的主入口点。 /// /// [DllImport("User32.dll")] public static... 阅读全文
posted @ 2006-08-05 09:32 感動常在 阅读(240) 评论(0) 推荐(0) 编辑