自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(111)
  • 资源 (8)
  • 收藏
  • 关注

转载 Regex在.Net中的平衡组-----Part 2 of 2

IntroductionVisit hereThis is the second article in a short series where I go in depth with the .NET RegEx engine and Regex class. The first part treated nested RegEx constructions in depth. In th

2008-05-06 23:31:00 1012

原创 Regex在.Net中的平衡组-----Part 1 of 2

IntroductionVisit hereA cool feature of the .NET RegEx-engine is the ability to match nested constructions, for example nested parenthesis. I will describe this feature somewhat in depth in this a

2008-05-06 23:29:00 1093

转载 理解C#的值类型和引用类型

从概念上看,值类型直接存储其值,而引用类型存储对其值的引用。这两种类型存储在内存的不同地方。在C#中,我们必须在设计类型的时候就决定类型实例的行为。这种决定非常重要,用《CLR via C#》作者Jeffrey Richter的话来说,“不理解引用类型和值类型区别的程序员将会给代码引入诡异的bug和性能问题(I believe that a developer who misunderstands

2008-04-27 19:06:00 1096

转载 bcp命令详解

bcp 实用工具在 Microsoft? SQL Server? 2000 实例和数据文件之间以用户指定的格式复制数据。语法bcp {[[database_name.][owner].]{table_name | view_name} | "query"}      {in | out | queryout | format} data_file      [-m max_errors] [-f

2007-12-23 15:06:00 1069

转载 C#中调用Windows API的要点

 在.Net Framework SDK文档中,关于调用Windows API的指示比较零散,并且其中稍全面一点的是针对Visual Basic .net讲述的。本文将C#中调用API的要点汇集如下,希望给未在C#中使用过API的朋友一点帮助。另外如果安装了Visual Studio .net的话,在C:/Program Files/Microsoft Visual Studio .NET

2007-12-15 13:46:00 775

转载 右键菜单大揭密

□   bennial                         在Windows系统中,只要对着桌面或是文件(夹)单击右键,就会弹出一个快捷菜单,里面有对该文件(夹)的一些常用操作命令,通过右键菜单,可以方便用户对文件的某些操作。不知道你是否对它感兴趣?是否想对它作一番改头换面,做出有自己特色的右键菜单?不用着急,看完本文的大揭密,你将成为这方面的高手!         修改右键菜单应该在

2007-11-18 01:16:00 1072

转载 Hidden Programs in Windows XP

Below are the lists of some of the Hidden Programs in the Windows XP operating System. Go to start and select Run. There typing the command on right side of the list will open the application in the l

2007-11-17 21:27:00 1007

原创 如何获得当前应用程序所在路径

WinAPI:        /**////         ///  Gets the handle of the foreground window which applies only to top-level windows (frame windows or dialog boxes).        ///         ///         /// The return 

2007-11-04 01:19:00 1034

转载 如何对系统中的某个线程进行监控

http://blog.csdn.net/knight94/archive/2006/03/21/631196.aspx 

2007-10-28 13:10:00 1236

转载 Splash Screen

using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;namespace SplashSample...{    /**////     /// Summary description for Splash.    ///

2007-10-27 22:00:00 1479

转载 资源文件说明:资源文件生成器 (Resgen.exe)

资源文件生成器 (Resgen.exe)资源文件生成器将 .txt 文件和 .resx(基于 XML 的资源格式)文件转换为公共语言运行库二进制 .resources 文件,该文件可嵌入运行库二进制可执行文件或编译成附属程序集。  Resgen.exe 执行下列转换:•    将 .txt 文件转换为 .resources 文件或 .resx 文件。•    将 .resources

2007-10-27 01:17:00 1414

转载 SyntaxHighlighter part3(TestApp)

        private void Form1_Load(object sender, System.EventArgs e)        ...{            SyntaxHighlightingTextBox shtb = new SyntaxHighlightingTextBox();            shtb.Location = new Point(0,0);

2007-10-27 01:11:00 909

转载 SyntaxHighlighter part2

using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Data;using System.Windows.Forms;using System.Text;using System.Runtime.InteropServices;namespace U

2007-10-27 01:02:00 1001

转载 SyntaxHighlighter part1

using System;using System.Drawing;using System.Collections;using System.Collections.Specialized;using System.ComponentModel;using System.Windows.Forms;namespace UrielGuy.SyntaxHighlightingTextBox...

2007-10-27 00:56:00 1294

原创 如何让你的WinForm嵌入桌面

首先, 调用一些User32.dll的WinAPI函数internal class User32    ...{        public const int SE_SHUTDOWN_PRIVILEGE = 0x13;        [DllImport("user32.dll")]        public static extern IntPtr FindWindow(string

2007-10-26 23:58:00 3419 3

转载 Windows XP下关机方法整理

记得暑假的时候偶无聊写了一个MyClock的小恶作剧软件,当时用到了关机.其实之前我一直以为关机嘛,不就是ExitWindowEx就可以了嘛,其实事情没那么简单,XP下的关机需要一个提升权限(Privilege)的过程.我简单整理了一下,WindowsXP下关机至少有下面几种方法:一: 最简单的方法是 shutdown -s -t 0关于shutdown的具体用法如下:用法: shutdown [

2007-10-26 23:49:00 1462

转载 获取exe文件中的图标

public Icon[] myicon=new Icon[1000];        public int currentIndex=0;        [System.Runtime.InteropServices.DllImport("shell32.dll")]        private static extern int ExtractIconEx(string lpszFile,

2007-10-21 00:39:00 1938

转载 4 ways to send a PDF file to the IE Client in ASP.NET 2.0

In this pick, I am sharing a project using which you can send PDF files to the IE Client in four different ways. You may download the project by clicking here.Create a new C# Website. While creating

2007-10-17 01:13:00 1059

原创 DateTimePicker中自定义时间或日期显示格式

在DateTimePicker中把Format 选择为Cutstom,然后在CutstomFormat写入格式字符串,介绍如下:如何你显示10:05 Am,则写成:HH:mm tt(区分大小写)要显示包含日期和时间分隔符的字符串或格式字符串,则必须在子字符串中使用转义符。例如,若要将日期显示为"June 06 at 3:00 PM",请将 CustomFormat 属性设置为"MMMM dd

2007-09-14 20:46:00 2333

转载 使用 C# 进行 Outlook 2003 编程的简介

lycoo推荐 [2006-8-27]出处:msdn作者:Andrew Troelsen  Andrew W. TroelsenIntertech Training单击此处可下载本文的代码示例。摘要: 本文介绍了 Microsoft Outlook 2003 对象模型介,并探讨了如何使用 C# 编程语言生成 Outlook 识别的应用程序和 Outlook 外接程序。(35 页

2007-09-13 23:36:00 1907

转载 Mono BitSharp

http://www.mono-project.com/Bitsharp 

2007-09-05 10:36:00 1013

转载 TcpListener Class

using System;using System.IO;using System.Net;using System.Net.Sockets;using System.Text;class MyTcpListener...{  public static void Main()  ...{     TcpListener server=null;       try    ...{      

2007-08-14 11:59:00 850

转载 Asynchronous server socket using C#

/**////     /// Author: Asad Aziz    /// Description: State object for reading client data asynchronously.    ///     public class StateObject    ...{        public bool connected = false;    // ID 

2007-08-14 11:56:00 1411

转载 How To: 获取本机固定IP

private IPAddress GetLocalHost()        ...{            try            ...{                WebClient wClient = new WebClient();                byte[] byteRecv = wClient.DownloadData("http://www.ip13

2007-08-12 17:53:00 874

转载 Visual Studio 2005插件编写与安装教程

http://www.msproject.cn/ArticleViewer.aspx?ArticleId=73  http://blog.csdn.net/cqfeng/archive/2006/02/17/601506.aspx

2007-08-10 11:13:00 1051

转载 UDP穿越NAT的原理和实现

坛上经常有对P2P原理的讨论,但是讨论归讨论,很少有实质的东西产生(源代码)。呵呵,在这里我就用自己实现的一个源代码来说明UDP穿越NAT的原理。首先先介绍一些基本概念:    NAT(Network Address Translators),网络地址转换:网络地址转换是在IP地址日益缺乏的情况下产生的,它的主要目的就是为了能够地址重用。NAT分为两大类,基本的NAT和NAPT(Netwo

2007-08-08 10:01:00 1237 1

原创 异步Socket

using System;using System.Collections.Generic;using System.Text;using System.Net.Sockets;using System.Threading;using System.Net;namespace AsyncSocket...{    public enum SocketState    ...{        s

2007-08-06 14:28:00 1637

转载 用Visual C#实现P2P应用程序

一.前言:  P2P,即英文Peer-to-Peer的缩写,中译为对等互联或点对点技术。讲到P2P,人们就会想起Napster,Napster让人们认识到了P2P技术的威力,P2P技术也就通过Napster进入了大多数用户的视野,Napster的音乐文件交换功能是P2P的一个主要应用。P2P技术可以让用户可以直接连接到其他用户的计算机,进行文件共享与交换。同时P2P在深度搜索、分布计算、协同工作等

2007-08-01 20:21:00 928

转载 C#中Play Sound

using System;using System.Collections;using System.ComponentModel;using System.Diagnostics;using System.Drawing;using System.Media;using System.Windows.Forms;namespace SoundApiExample...{    public 

2007-08-01 10:10:00 1946

转载 QQ停靠特效

主要是"QQ窗体停靠"的效果form1代码:using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Runtime.InteropServices;namespa

2007-07-27 23:55:00 1010

转载 获取汉字的首字母

public string GetChineseSpell(string strText) ...{ int len = strText.Length; string myStr = ""; for(int i=0;ilen;i++) ...{ myStr += getSpell(strText.Substring(i,1)); } return myStr; } public string 

2007-07-27 23:46:00 708

原创 Login Mechanism

using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;namespace LoginMechanism...{    public class LoginAppContext : ApplicationContext    ...{        protected 

2007-07-26 01:00:00 1901

转载 WebBrowser and Cookies

先建一个"CookieContainer" 把WebBrowser中的Cookie保存在里面           //在WebBrowser中登录 cookie保存在 WebBrowser.Document.Cookie中                        CookieContainer myCookieContainer = new CookieContainer();     

2007-07-25 00:05:00 1200

原创 C#中双击标题栏关闭WinForm程序

public const int WM_NCLBUTTONDBLCLK = 0xA3;        protected override void WndProc(ref Message m)        ...{            if (m.Msg == WM_NCLBUTTONDBLCLK)            ...{                this.Close();

2007-06-30 00:41:00 1415

转载 在05下如何将datagridview转化为datatable

// 给datagridview 赋值 DataTable table; table = new DataTable(); DataColumn column = new DataColumn(); column.ColumnName = "id"; column.DataType = System.Type.GetType("System.String"); // Add t

2007-06-29 11:42:00 2852

转载 获取CPU信息

using System;using System.Configuration;using System.Runtime.InteropServices;using System.Management;using System.Text;namespace CPUInformation...{    [StructLayout(LayoutKind.Sequential)]    public

2007-06-24 22:47:00 909

转载 玩转DataGridView

.NET 2.0 - WinForm Control - DataGridView 编程36计.NET 2.0 - WinForm Control - DataGridView 编程36计(每天更新中... ...)目录: 取得或者修改当前单元格的内容 设定单元格只读 不显示最下面的新行 判断新增行 行的用户删除操作的自定义 行、列的隐藏和删除 禁止列或者行的Resize★ DataGridV

2007-06-24 02:32:00 3609 4

转载 数字签名技术之一[RSA]

先来讲讲费马小定理如果n是一个任意整数而p是一个任意素数,那么,n的p次方-n可以被p整除。例如,n=4,p=3,那么4的3次方-4=60能被3整除。STEP1: (n^p-n)%p≡0STEP2: n(n^(p-1)-1)%p≡0STEP3: 因为n与p互质,故(n^(p-1)-1)%p≡0STEP4: (n^(p-1))%p≡1STEP5: n^(p-1)≡1(mod

2007-06-23 23:58:00 1063

原创 扑克洗牌程序

using System;using System.Collections.Generic;using System.Text;namespace RandomOut...{    public interface IRandom    ...{        void BringToWorld();        void MixedRandomized();    }    public 

2007-06-23 02:00:00 1208

转载 .NET配置文件解析过程详解

在我看来,WEB project的开发与WINFORM的开发最大的区别在于web的运行是在Framework上更高一层框架上运行,即ASP。NET框架,程序员在web下的开发可以说是黑盒开发,不是让你去定义程序入口和执行顺序,而是asp.net来调用你的各个方法,程序员做的一切都是一种受控的舞蹈。就像我们调用nunit之类的工具来测试一个dll一样,nunit是容器,是框架,执行哪个方法是由nun

2007-06-21 14:36:00 873

iMan-端口扫描器

一个.NET写的端口扫描器,其中用到了Windows API, iphlpapi.dll, 也使用了WMI来辅助获取进程的详细信息

2009-02-11

.Net MultiThreading

1. 英文版PDF<br>2. 关于.Net多线程处理方面的论著

2008-04-23

UML基础与Rational Rose 2003建模教程(2)

本书全面, 详细地介绍了UML的基础知识和Rational Rose 2003的使用方法, 并通过4个综合性的案例, 展示了使用UML和Rose进行软件建模的具体方法和步骤.

2008-04-23

UML基础与Rational Rose 2003建模教程(1)

本书全面, 详细地介绍了UML的基础知识和Rational Rose 2003的使用方法, 并通过4个综合性的案例, 展示了使用UML和Rose进行软件建模的具体方法和步骤.

2008-04-22

C++入门经典(PDF) Part3

C++经典入门教程, 循序渐进的讲解C++, 值得一读, 由于大小问题, 分了三个包

2008-03-30

C++入门经典(PDF) Part2

C++经典入门教程, 循序渐进的讲解C++, 值得一读, 由于大小问题, 分了三个包, 这是第二个<br><br>忘了说了, 这个是第三版

2008-03-30

C++入门经典(PDF) Part1

C++经典入门教程, 循序渐进的讲解C++, 值得一读, 由于大小问题, 分了三个包, 其余的两个免积分

2008-03-30

Excel Manager

一个Excel的操作类

2008-03-01

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除