摘要:
声明:版权归原作者所有,本人稍微修改 public class WindowBehaviorHelper { private const int WM_NCHITTEST = 0x0084; //测试消息 private const int WM_GETMINMAXINFO = 0x0024;//大小变化 private Window WindowTarget; //目标窗口 private int WidthCorner = 4; //拐角宽度 private int ThicknessTransparentBorder = 5; //透明宽度 private int ThicknessBo 阅读全文
摘要:
通过字符串对控件属性赋值例如:"BackColor=Color.FromArgb(100,100,100);BackGroundimage=Image.FromFile(\"XXX\")"其中最关键的部分算是获取动态代码的值.以下为获取动态代码值的类,不足之处还请指正.------------------------------------------------ 1 usingMicrosoft.CSharp; 2 usingSystem.Reflection; 3 using System.CodeDom.Compiler; 4 5 public s 阅读全文
摘要:
一、下面是一个绘制方法的静态类废话不说直接上代码:using System;using System.Collections.Generic;using System.Text;//其它命名空间using System.Windows.Forms;using System.Drawing;using System.Drawing.Drawing2D;namespace Tools.UserClas... 阅读全文