摘要: "^\d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-\d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?\d+$" //整数 "^\d+(\.\d+)?$" //非负浮点数(正浮点数 + 0) "^(([0-9]+\.[0-9]*[1-9][0-9]... 阅读全文
posted @ 2006-02-21 16:02 jhtchina 阅读(424) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Runtime.InteropServices;using System.Text;namespace Win... 阅读全文
posted @ 2006-02-21 15:49 jhtchina 阅读(650) 评论(0) 推荐(0) 编辑
摘要: From:http://elevenwolf.cnblogs.com/archive/2004/07/23/26969.html1.一个应用程序只能被用户打开一次 Process mobj_pro =Process.GetCurrentProcess(); Process[] mobj_proList=Process.GetProcessesByName(mobj_pro.P... 阅读全文
posted @ 2006-02-21 15:14 jhtchina 阅读(768) 评论(0) 推荐(0) 编辑