摘要: 目前为止,许多编程语言和工具都包含对正则表达式的支持,C#也不例外,C#基础类库中包含有一个命名空间(System.Text.RegularExpressions)和一系列可以充分发挥规则表达式威力的类(Regex、Match、Group等)。那么,什么是正则表达式,怎么定义正则表达式呢?一、正则表... 阅读全文
posted @ 2016-01-08 08:49 春树 阅读(153) 评论(0) 推荐(0) 编辑
摘要: typeTMsg = packed recordhwnd: HWND; //窗口句柄message: UINT;//消息常量标识符wParam: WPARAM ;// 32位消息的特定附加信息lParam: LPARAM ;// 32位消息的特定附加信息time: DWORD;//消息创建时的时间p... 阅读全文
posted @ 2015-05-13 11:19 春树 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 1. API之网络函数WNetAddConnection 创建同一个网络资源的永久性连接WNetAddConnection2 创建同一个网络资源的连接WNetAddConnection3 创建同一个网络资源的连接WNetCancelConnection 结束一个网络连接WNetCancelConne... 阅读全文
posted @ 2015-05-11 15:38 春树 阅读(312) 评论(0) 推荐(0) 编辑
摘要: [DllImport("gdi32.dll")] public static extern int GetDeviceCaps( IntPtr hdc, // handle to DC int nIndex // index of capability );nIndex:const int ... 阅读全文
posted @ 2015-05-11 15:11 春树 阅读(1817) 评论(0) 推荐(0) 编辑
摘要: [DllImport("user32")]public static extern int GetSystemMetrics(int nIndex);nIndex值:SM_CXSCREEN = 0 '屏幕宽度SM_CYSCREEN = 1 '屏幕高度SM_CXVSCROLL = 2 '垂直滚动条的宽... 阅读全文
posted @ 2015-05-11 12:39 春树 阅读(1366) 评论(0) 推荐(0) 编辑
摘要: 1using System; 2using System.Collections.Generic; 3using System.ComponentModel; 4using System.Data; 5using System.Drawing; 6using System.Text; 7using... 阅读全文
posted @ 2015-04-30 09:30 春树 阅读(1750) 评论(0) 推荐(0) 编辑