.net
百战天王
分布式技术架构师
展开
-
DllImport的具体用法
http://hi.baidu.com/xufzu123/blog/item/e09084f60626e62a730eec56.html 在对托管代码进行 P/Invoke 调用时,DllImportAttribute 类型扮演着重要的角色。DllImportAttribute 的主要作用是给 CLR 指示哪个 DLL 导出您想要调用的函数。相关 DLL 的名称被作为一个构造函数参数传递给转载 2009-09-23 10:41:00 · 644 阅读 · 0 评论 -
log4net完整示例
配置文件路径"Config\\Log4Net.config"(相对执行目录)原创 2014-09-29 10:49:00 · 661 阅读 · 0 评论 -
动态编码示例
Private Sub Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button.Click Create a compiler. Dim Comp As VBCodeProvider = New VBCodeProvider()转载 2010-01-04 11:59:00 · 675 阅读 · 0 评论 -
MSDN收藏
VS2008 标准日期和时间格式字符串: ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.chs/dv_fxfund/html/bb79761a-ca08-44ee-b142-b06b3e2fc22b.htm 使用 ADO.NET 访问 Oracle 9i 存储过程http://msdn.microsoft.com/zh-cn/library/ms原创 2009-12-22 09:18:00 · 518 阅读 · 0 评论 -
.net控件焦点事件的顺序
http://nkthinker.blog.51cto.com/472430/140109 用鼠标和用键盘改变焦点事件顺序是不一样的,按Tab键的顺序 1 Enter 2 GotFocus 3 Leave 4 Validating 5 Validated 6 LostFocus 电机鼠标引起的转载 2009-10-15 10:34:00 · 699 阅读 · 0 评论 -
实现仿Visual Studio风格的控件DockPanel
DockPanel Suite是一个开源项目,其主页为http://sourceforge.net/projects/dockpanelsuite/,提供了DockPanel控件程序集以及源文件的下载。 项目要引用WeifenLuo.WinFormsUI.Docking.dll,这个程序集包含了控件及相关类。 需要在DockPanel控件中显原创 2009-10-10 14:36:00 · 2968 阅读 · 0 评论 -
委托事件的另类取消方法
http://www.cnblogs.com/viki117/archive/2008/07/31/1257313.html Type t = button1.GetType(); PropertyInfo pi = t.GetProperty("Events", BindingFlags.Instance | BindingFlags.No转载 2009-10-09 10:55:00 · 629 阅读 · 1 评论 -
为自定义控件设置在工具箱中现实的图标
How to find the elusive ToolboxBitmap iconWhen you create your own Windows Forms controls you can add a bitmap that will be seen on the toolbox menu as shown in figure 1.Figure 1. Custom toolbox转载 2009-10-09 22:31:00 · 928 阅读 · 0 评论 -
动态变量名的实现方法
using System;using System.Reflection; namespace ConsoleApplication1{ class Class1 { int bc = 100; int abc = 1000; public int getValue(string wl) { Fiel转载 2009-09-29 09:24:00 · 899 阅读 · 0 评论 -
用vs2005打开vs2008解决方案
首先,用记事本打开.sln文件 把Microsoft Visual Studio Solution File, Format Version 10.00 改为:Microsoft Visual Studio Solution File, Format Version 9.00 然后,用记事本打开*.vsproj文件 找到删除ToolsVersion="3.5" 找到:MSB转载 2009-09-25 14:56:00 · 442 阅读 · 0 评论 -
在c#中使用Hook
http://support.microsoft.com/default.aspx?scid=kb;en-us;318804 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;us转载 2009-09-30 11:21:00 · 578 阅读 · 0 评论 -
生成静态缩略图,收缩gif
辅助类GIF原创 2014-10-11 11:38:31 · 2237 阅读 · 0 评论