上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
  2008年2月21日
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Runtime.InteropServices;namespaceDemo1{///<summary>///配置文件操作///</summary>publicpartialclassForm1:Form{///<summary>///在初 阅读全文
posted @ 2008-02-21 13:02 wkjs 阅读(138) 评论(0) 推荐(0) 编辑
  2008年1月29日
摘要: ///<summary>///正则表达式验证///</summary>///<paramname="input">检验数据</param>///<paramname="pattern">正则表达式</param>///<returns>检验结果</returns>privateboolbMatch(stringinput,stringpattern){//声明一个Regex对象System.Text.RegularExpressions.Regexr=newS 阅读全文
posted @ 2008-01-29 16:54 wkjs 阅读(147) 评论(0) 推荐(0) 编辑
  2008年1月23日
摘要: publicsealedclassSingleton<T>whereT:new()...{privatestaticTinstance=newT();privatestaticobjectlockHelper=newobject();privateSingleton()...{}publicstaticTGetInstance()...{if(instance==null)...{lock(lockHelper)...{if(instance==null)...{instance=newT();}}}returninstance;}} 阅读全文
posted @ 2008-01-23 15:35 wkjs 阅读(132) 评论(0) 推荐(0) 编辑
  2008年1月21日
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;namespaceWindowsApplication1{publicpartialclassForm1:Form{///<summary>//////</summary>privateADODB.Connectioncn=newADODB.Connection();/// 阅读全文
posted @ 2008-01-21 11:25 wkjs 阅读(166) 评论(0) 推荐(0) 编辑
  2008年1月14日
摘要: privatevoidGhangeNames(stringfilepath,stringsfm,intk){DirectoryInfoinf=newDirectoryInfo(filepath);FileInfo[]files=inf.GetFiles();try{for(inti=0;i<files.Length;i++){listBox1.Items.Add(files[i].Name);listBox2.Items.Add(textBox2.Text+(k+i).ToString(sfm)+files[i].Name.Substring(files[i].Name.LastInde 阅读全文
posted @ 2008-01-14 16:41 wkjs 阅读(153) 评论(0) 推荐(0) 编辑
  2007年12月3日
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Diagnostics;namespaceWalter.K.Wang{publicpartialclassForm1:Form{privateProcessprocess=newProcess();publicForm1(){Initial 阅读全文
posted @ 2007-12-03 09:30 wkjs 阅读(240) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;namespaceWalter.K.Wang{publicpartialclassForm1:Form{publicForm1(){InitializeComponent();}privatevoidlistBox1_MouseDown(objectsender, 阅读全文
posted @ 2007-12-03 09:29 wkjs 阅读(200) 评论(0) 推荐(0) 编辑
  2007年10月26日
摘要: //ShutDown.csusingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Runtime.InteropServices;namespaceWalter.K.Wang{///<summary>//////</summary>publicclassShutDown{///<summary>//////</summary>publicenumOperat{///<summary>///关闭计算机///</summary>ShutD 阅读全文
posted @ 2007-10-26 10:12 wkjs 阅读(302) 评论(0) 推荐(0) 编辑
摘要: //RunWhenStart.csusingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingMicrosoft.Win32;usingSystem.Windows.Forms;namespaceWalter.K.Wang{///<summary>//////</summary>publicclassRunWhenStart{///<summary>///开机自动启动程序///</summary>///<paramname="Started"> 阅读全文
posted @ 2007-10-26 10:07 wkjs 阅读(212) 评论(0) 推荐(0) 编辑
  2007年10月22日
摘要: 上篇文章中,在普通页面可以使用,但是在服务器中并不能够运行。做如下替代方案//Default.jsfunctionOpenPage(URL)...{varwins=window.open(URL,"test","scrollbars=yes,resizable=yes,toolbar=no,status=yes");if(wins==null)...{window.location=URL;}else...{window.opener=null;window.close();}}functionMaxsize(URL)...{window.moveTo( 阅读全文
posted @ 2007-10-22 15:02 wkjs 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页