2009年3月24日

将DataGridView中的数据导出到EXCEL表中

摘要: //首先要添加引用 COM组件 Microsoft Excel 12.0 Object Libraryusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windo... 阅读全文

posted @ 2009-03-24 22:44 VictorShan 阅读(1332) 评论(0) 推荐(0) 编辑

汉字及区位码之间的转换

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace Test{ public partial class HanZi... 阅读全文

posted @ 2009-03-24 22:33 VictorShan 阅读(529) 评论(0) 推荐(0) 编辑

2009年2月12日

C#代码,启动和杀掉进程

摘要: using System.Diagnostics; //有Process类//方法一//this.process1.StartInfo = new ProcessStartInfo(@"c:\windows\system32\calc.exe");//this.process1.Start();//方法二this.process1.StartInfo.FileName = @"c:\windows... 阅读全文

posted @ 2009-02-12 15:16 VictorShan 阅读(714) 评论(0) 推荐(0) 编辑

2009年1月6日

俱乐部网址

摘要: fpt://guest:guest@221.204.249.208:4321 阅读全文

posted @ 2009-01-06 01:08 VictorShan 阅读(139) 评论(0) 推荐(0) 编辑

2009年1月2日

ASP函数大全

摘要: Abs(number) 返回绝对值。 Array(arglist) 创建一个数组。 Asc(string) 返回字符串第一个字符的ANSI码。 Atn(number) 返回反正弦值。 CBool (expression) 转换成Boolean数据类型变量。 CByte (expression) 转换成Byte数据类型变量。 CCur (expression) 转换成Currency数据类型变量。 ... 阅读全文

posted @ 2009-01-02 16:53 VictorShan 阅读(158) 评论(0) 推荐(0) 编辑

2008年12月14日

Javascript匹配IP地址

摘要: 利用正则表达式匹配IP地址,并将IP地址转换成对应数值的Javascript程序: functionIP2V(ip)   {   re=/(\d+)\.(\d+)\.(\d+)\.(\d+)/g//匹配IP地址的正则表达式   if(re.test(ip))   {   returnRegExp.$1*Math.pow(255,3))+RegExp.$2*Math.pow(255,2))+RegE... 阅读全文

posted @ 2008-12-14 17:00 VictorShan 阅读(314) 评论(0) 推荐(0) 编辑

C#正则表达式备忘

摘要: 只能输入n位的数字:"^\d{n}$"。  只能输入至少n位的数字:"^\d{n,}$"。  只能输入m~n位的数字:。"^\d{m,n}$"  只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。  只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})?$"。  只能输入有1~3位小数的正实数:"^[0-9]+(.[0-9]{1,3})?$"。  只能输入非零的正整... 阅读全文

posted @ 2008-12-14 16:58 VictorShan 阅读(138) 评论(0) 推荐(0) 编辑

2008年10月26日

JAVA如何取配置文件的相对路径

摘要: 有个问题一直没解决,今天终于在大家的帮助下解决了,为了以后,在这里记一下,顺便跟大家分享一下,要是有更好的解决方法,希望能给我留言,谢谢! 这个问题就是在JSP中如何取得配置文件所在的路径 我在WebRoot下有个file文件夹,在该文件夹下有个a.properties的配置文件,用过很多方法,如:request.getContextPa... 阅读全文

posted @ 2008-10-26 21:05 VictorShan 阅读(1109) 评论(0) 推荐(0) 编辑

2008年10月22日

快忘记了的C#索引器

摘要: //索引器类 class MyArrayList { object[] MyOBJ; //1.定义object类型的数组 int i = 0; public MyArrayList(int i) //2.规定数组长度 { MyOBJ = new o... 阅读全文

posted @ 2008-10-22 00:02 VictorShan 阅读(168) 评论(0) 推荐(0) 编辑

2008年10月16日

标准标签库应用及从文件读取消息的备忘

摘要: //properties文件中的格式 title=标题 1=内容1 2=内容2 3=内容3 4=内容.... //处理中文乱码的类 public class CodeSwitching { static public String Transition(String str) throws UnsupportedEncodingException { String code ; b... 阅读全文

posted @ 2008-10-16 17:27 VictorShan 阅读(146) 评论(0) 推荐(0) 编辑

导航