随笔分类 - C#
摘要:目前为止,许多编程语言和工具都包含对正则表达式的支持,C#也不例外,C#基础类库中包含有一个命名空间(System.Text.RegularExpressions)和一系列可以充分发挥规则表达式威力的类(Regex、Match、Group等)。那么,什么是正则表达式,怎么定义正则表达式呢?一、正则表...
阅读全文
摘要:public static class ExtensionControl{ public static object GetPropertySafe(this Control control, string propertyName) { objectreturnValue = null; Acti...
阅读全文
摘要:publicobjectInvokeMember(string,BindingFlags,Binder,object,object[]);string:你所要调用的函数名BindingFlags:你所要调用的函数的属性,可以组合Binder:高级内容,可以先不看object:调用该成员函数的实例ob...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Data;using System.Xml;using System.Xml....
阅读全文
posted @ 2015-06-24 14:50
春树
摘要:typeTMsg = packed recordhwnd: HWND; //窗口句柄message: UINT;//消息常量标识符wParam: WPARAM ;// 32位消息的特定附加信息lParam: LPARAM ;// 32位消息的特定附加信息time: DWORD;//消息创建时的时间p...
阅读全文
摘要:1. API之网络函数WNetAddConnection 创建同一个网络资源的永久性连接WNetAddConnection2 创建同一个网络资源的连接WNetAddConnection3 创建同一个网络资源的连接WNetCancelConnection 结束一个网络连接WNetCancelConne...
阅读全文
摘要:[DllImport("gdi32.dll")] public static extern int GetDeviceCaps( IntPtr hdc, // handle to DC int nIndex // index of capability );nIndex:const int ...
阅读全文
摘要:[DllImport("user32")]public static extern int GetSystemMetrics(int nIndex);nIndex值:SM_CXSCREEN = 0 '屏幕宽度SM_CYSCREEN = 1 '屏幕高度SM_CXVSCROLL = 2 '垂直滚动条的宽...
阅读全文
摘要:1using System; 2using System.Collections.Generic; 3using System.ComponentModel; 4using System.Data; 5using System.Drawing; 6using System.Text; 7using...
阅读全文

浙公网安备 33010602011771号