共 4 篇文章 |
|
C#实例详解TypeConverterAttribute应用。[Browsable(true)] public Scope Scope { get { return _scope;} set { _scope = value;public Scope() { } public Scope(Int32 min, Int32 max) { _min = min;if (destinationType == typeof(String)) { Scope scope = (Scope)value;关键是这一行this.myListControl1.Scope = new CustomC... 阅2762 转12 评0 公众公开 13-06-06 16:57 |
浅析Attribute在C# WinForm控件开发中的使用。在这个属性之上有两个Attribute,这两个attribute描述了控件在设计时所表现出来的特征。◆DescriptionAttribute:当用户在属性浏览器里选择属性的时候,description里指定的文本会显示在属性浏览器的下边,向用户显示属性的功能。那么关于Attribute在C# WinForm控件开发中的使用内容就向你介绍到这... 阅391 转3 评0 公众公开 13-06-06 16:44 |
控件开发基本功之如何调试。其使用方法的大致流程是,启动调试控件--》调用并运行另一个IDE窗口--》在这个新打开的IDE中打开测试的控件的工程,在控件开发环境中设置断点--》运行测试调试,就可以调试了。然后设好断点启动调试就会打开一个新的IDE窗口,在这个新的IDE窗口中再(新建)打开控件的测试工程,就可以运行测试工程进行调试了。 阅122 转1 评0 公众公开 13-06-06 13:27 |
/// </summary> private PointF[] getPointF(int x,int y,int Width,int Height){ PointF point1 = new PointF(x,y);PointF point3 = new PointF(x+Width,y+Height);Width=this._SelfWidth-(Cursor.case 0://只移动位置 this.Location=new Point(Cursor.Position.X-(_MouseLocation.X-_SelfLocation.X),Cursor.Position.Y-(_MouseLocatio... 阅6228 转24 评0 公众公开 13-06-06 13:21 |