K3

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 5 6 7 8 9

2005年4月29日

摘要: privatevoidScanTarget() { stringstrIPAddress="192.168.1."; //Startscanaddress intnStrat=Int32.Parse("1"); //Finishscanaddress ... 阅读全文
posted @ 2005-04-29 15:11 K3 阅读(933) 评论(0) 推荐(0) 编辑

2005年4月21日

摘要: 头文件: usingSystem; usingSystem.Drawing; usingSystem.Collections; usingSystem.ComponentModel; usingSystem.Windows.Forms; usingSystem.Data; usingSystem.Data.OleDb; 代码: stringstrCo... 阅读全文
posted @ 2005-04-21 17:35 K3 阅读(1138) 评论(0) 推荐(1) 编辑

2005年4月18日

摘要: 定义:提供创建对象的接口. 为何使用? 工厂模式是我们最常用的模式了,著名的Jive论坛 ,就大量使用了工厂模式,工厂模式在Java程序系统可以说是随处可见。 为什么工厂模式是如此常用?因为工厂模式就相当于创建实例对象的new,我们经常要根据类Class生成实例对象,如A a=new A() 工厂模式也是用来创建实例对象的,所以以后new时就要多个心眼,是否可以考虑实用工厂模式,虽然这样做... 阅读全文
posted @ 2005-04-18 14:00 K3 阅读(497) 评论(0) 推荐(0) 编辑

2005年4月17日

摘要: 如何启动.exe文件? System.Diagnostics.Process.Start("iexplore.exe","http://www.sina.com.cn"); System.Diagnostics.Process.Start(); --------------------------------- 获得桌面路径: Envir... 阅读全文
posted @ 2005-04-17 19:07 K3 阅读(618) 评论(0) 推荐(0) 编辑

2005年4月15日

摘要: 得到所有进程且杀死QQ的进程: foreach(System.Diagnostics.ProcessthisprocinSystem.Diagnostics.Process.GetProcesses()) { this.listBox1.Items.Add(thisproc.ToString()); ... 阅读全文
posted @ 2005-04-15 16:05 K3 阅读(793) 评论(0) 推荐(1) 编辑

2005年3月28日

摘要: 第一步:把需要传递的数值放入ViewState 如下: ViewState["PageIndex"]=intCurrentPage; 第二步:把ViewState提交 如下: publicSystem.Web.UI.StateBagPublicViewState { get { ... 阅读全文
posted @ 2005-03-28 17:15 K3 阅读(1771) 评论(1) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9