2008年7月16日
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->New Page 1注:Firefox(火狐)浏览器需要将“dom.allow_scripts_to_close_windows”属性设置为“true”。在火狐地址栏输入:about:config,进入高...
阅读全文
posted @ 2008-07-16 14:53
迷你软件
阅读(844)
推荐(0)
摘要:
下面创建一个小的Windows应用程序,该应用程序使用ServiceController类监视和控制Windows服务。 创建一个Windows窗体应用程序,这个应用程序的用户界面包含一个显示所有服务的列表框、4个文本框(分别用于显示服务的显示名称、状态、类型和名称),以及4个发送控制事件的按钮,如图32-18所示。 图 32-18 这里使用了System.ServiceProcess.Ser...
阅读全文
posted @ 2008-07-16 10:53
迷你软件
阅读(840)
推荐(0)
2008年7月10日
摘要:
嗅探器(Sniffer)一直以来都是一种让人恼火的黑客工具,因为它是一种静态的攻击软件,它的存在不会留下任何痕迹,因此人们很难将它揪出来。可是,它的危害性却又是相当大的(它就像一个监视器,你的“一举一动”都在它的监视之下,你说危害大不大)。所以,我们不能不要想个办法出来检查网络中是否存在Sniffer,这是非常必要的。 1. Sniffer原理 所谓知己知彼方能百战不殆,要了解探...
阅读全文
posted @ 2008-07-10 18:51
迷你软件
阅读(492)
推荐(0)
2008年7月2日
摘要:
using System;using System.ComponentModel;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Diagnostics;namespace ListViewVirtualMode{ public partial class Form1 : Form ...
阅读全文
posted @ 2008-07-02 17:12
迷你软件
阅读(3641)
推荐(1)
摘要:
本文将对微软.Net开发中的多线程编程进行一个简单的总结。 不需要传递参数,也不需要返回参数 我们知道启动一个线程最直观的办法是使用Thread类,具体步骤如下: ThreadStart threadStart=new ThreadStart(Calculate);Thread thread=new Thread(threadStart); thread.Start(); pu...
阅读全文
posted @ 2008-07-02 15:11
迷你软件
阅读(666)
推荐(0)
2008年6月26日
摘要:
/// /// 判断是否为正确的IP地址,IP范围(0.0.0.0~255.255.255) /// /// 需验证的IP地址 /// public bool IsIP(String ip) { return System.Text.RegularExpressions....
阅读全文
posted @ 2008-06-26 12:46
迷你软件
阅读(468)
推荐(0)
2008年6月24日
摘要:
先定义一个ListViewHelper类,代码如下: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections;using System.Windows.Forms;names...
阅读全文
posted @ 2008-06-24 10:59
迷你软件
阅读(8413)
推荐(2)
2008年6月20日
摘要:
create procedure pagination@sqlstr nvarchar(4000), --查询字符串@currentpage int, --第N页@pagesize int --每页行数asset nocount ondeclare @P1 int, --P1是游标的id@rowcount intexec sp_cursoropen @P1 output,@sqlstr,@scro...
阅读全文
posted @ 2008-06-20 09:20
迷你软件
阅读(723)
推荐(0)
2008年6月19日
摘要:
using System;using System.Drawing;using System.Windows.Forms;namespace DataGridViewTest{ public partial class Form1 : Form { private DataGridView dataGridView1 = new DataGridView(); ...
阅读全文
posted @ 2008-06-19 09:28
迷你软件
阅读(1154)
推荐(1)
2008年6月6日
摘要:
网摘: using System;using System.Collections.Generic;using System.Text;using System.Web.UI.WebControls;using System.Drawing;using System.ComponentModel;using System.Web.UI.HtmlControls;namespace WebBar.C...
阅读全文
posted @ 2008-06-06 17:16
迷你软件
阅读(1319)
推荐(0)
摘要:
例:系统锁定(win+L) using System;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { System.Diagnostics.Process p = new System.Diagnostics.Process...
阅读全文
posted @ 2008-06-06 14:49
迷你软件
阅读(504)
推荐(0)
摘要:
摘自http://blog.csdn.net/jinjazz/archive/2008/04/16/2298699.aspx using System;using System.Windows.Forms;using System.Runtime.InteropServices;namespace HotelManage{ public partial class Form1 : Form ...
阅读全文
posted @ 2008-06-06 14:42
迷你软件
阅读(390)
推荐(0)
2008年6月5日
摘要:
来源于:http://www.cnblogs.com/ruxpinsp1/archive/2008/05/03/css-ansi-art.html
阅读全文
posted @ 2008-06-05 15:42
迷你软件
阅读(208)
推荐(0)
2008年6月2日
摘要:
using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.Common;using System.Configuration;using System.Collections;namespace DBUtility{ public class Data...
阅读全文
posted @ 2008-06-02 15:28
迷你软件
阅读(852)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { // Create a new dictiona...
阅读全文
posted @ 2008-06-02 11:41
迷你软件
阅读(439)
推荐(0)