C#.Net组件开发(高级篇) - 全部源码下载
C#.Net组件开发(高级篇) - 全部源码下载
VS设计环境 - 组件编辑器
关于这个VS组件编辑器技术研究,花了几天时间,收获不少。VS组件开发涉及.Net框架底层的技术,水很深,非常复杂,由于时间关系不做深入研究了,附上本次学习的全部源码。 VS设计器组件设计源码: 生成的代码Form1.Designer.cs,这些代码才是最想要的,终于实现了!!! C# Code: partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.button1 = new System.Windows.Forms.Button(); this.csFrameworkComponent1 = new CSFramework.MyDesignEditor.CSFrameworkComponent(this.components); this.csFrameworkNode2 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.csFrameworkNode3 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.csFrameworkNode5 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.csFrameworkNode6 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.csFrameworkNode7 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.csFrameworkNode8 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.csFrameworkNode9 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.csFrameworkNode10 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.csFrameworkNode11 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.csFrameworkNode12 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.csFrameworkNode1 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.csFrameworkNode4 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.csFrameworkNode13 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.csFrameworkNode14 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.csFrameworkNode15 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.csFrameworkNode16 = new CSFramework.MyDesignEditor.CSFrameworkNode(); this.SuspendLayout(); // // button1 // this.button1.Location = new System.Drawing.Point(50, 50); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(150, 30); this.button1.TabIndex = 0; this.button1.Text = "www.CSFramework.com"; // // csFrameworkComponent1 // this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode2); this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode3); this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode5); this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode6); this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode7); this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode8); this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode9); this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode10); this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode11); this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode12); this.csFrameworkComponent1.MyInnerObject.ObjectCreator = "Jonny Sun - C/S框架网555"; this.csFrameworkComponent1.MyInnerObject.ObjectName = "对象名:634500426876739555555"; this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode1); this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode4); this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode13); this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode14); this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode15); this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode16); // // csFrameworkNode2 // this.csFrameworkNode2.ID = 1; this.csFrameworkNode2.NodeName = "名称:1"; // // csFrameworkNode3 // this.csFrameworkNode3.ID = 2; this.csFrameworkNode3.NodeName = "名称:2"; // // csFrameworkNode5 // this.csFrameworkNode5.ID = 3; this.csFrameworkNode5.NodeName = "名称:3"; // // csFrameworkNode6 // this.csFrameworkNode6.ID = 4; this.csFrameworkNode6.NodeName = "名称:4"; // // csFrameworkNode7 // this.csFrameworkNode7.ID = 5; this.csFrameworkNode7.NodeName = "名称:5"; // // csFrameworkNode8 // this.csFrameworkNode8.ID = 6; this.csFrameworkNode8.NodeName = "名称:6"; // // csFrameworkNode9 // this.csFrameworkNode9.ID = 7; this.csFrameworkNode9.NodeName = "名称:7"; // // csFrameworkNode10 // this.csFrameworkNode10.ID = 8; this.csFrameworkNode10.NodeName = "名称:8"; // // csFrameworkNode11 // this.csFrameworkNode11.ID = 9; this.csFrameworkNode11.NodeName = "名称:9"; // // csFrameworkNode12 // this.csFrameworkNode12.ID = 10; this.csFrameworkNode12.NodeName = "名称:10"; // // csFrameworkNode1 // this.csFrameworkNode1.ID = 470; this.csFrameworkNode1.NodeName = "www.CSFramework.com"; // // csFrameworkNode4 // this.csFrameworkNode4.ID = 307; this.csFrameworkNode4.NodeName = "www.CSFramework.com"; // // csFrameworkNode13 // this.csFrameworkNode13.ID = 0; this.csFrameworkNode13.NodeName = null; // // csFrameworkNode14 // this.csFrameworkNode14.ID = 0; this.csFrameworkNode14.NodeName = null; // // csFrameworkNode15 // this.csFrameworkNode15.ID = 0; this.csFrameworkNode15.NodeName = null; // // csFrameworkNode16 // this.csFrameworkNode16.ID = 0; this.csFrameworkNode16.NodeName = null; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(734, 381); this.Controls.Add(this.button1); this.Name = "Form1"; this.Text = "Form1"; this.ResumeLayout(false); } #endregion private CSFrameworkComponent csFrameworkComponent1; private CSFrameworkNode csFrameworkNode2; private CSFrameworkNode csFrameworkNode3; private CSFrameworkNode csFrameworkNode1; private CSFrameworkNode csFrameworkNode4; private System.Windows.Forms.Button button1; private CSFrameworkNode csFrameworkNode5; private CSFrameworkNode csFrameworkNode6; private CSFrameworkNode csFrameworkNode7; private CSFrameworkNode csFrameworkNode8; private CSFrameworkNode csFrameworkNode9; private CSFrameworkNode csFrameworkNode10; private CSFrameworkNode csFrameworkNode11; private CSFrameworkNode csFrameworkNode12; private CSFrameworkNode csFrameworkNode13; private CSFrameworkNode csFrameworkNode14; private CSFrameworkNode csFrameworkNode15; private CSFrameworkNode csFrameworkNode16; } //来源:C/S框架网(www.csframework.com) QQ:1980854898 Source code free download: 如需要转载内容请注明出处:www.csframework.com 版权所有,作者:孙中吕 扫一扫加微信
参考文档:
FastReport for .Net 报表开发实例(C#源码下载) C#.Net组件开发 - 设计时使用自定义属性编辑器持久化对象 标签:C#.Net组件开发 - 设计时持久化对象数组 标签:C#.Net组件开发 - 属性窗体内显示自定义名称 标签:C#.Net组件开发 - 自定义设计器(ComponentDesigner) 标签:C#.Net组件开发 - 自定义设计器持久化对象的属性 标签:C#.Net组件开发 - 自定义属性编辑器持久化对象的属性 C#.Net组件开发(高级篇) - 设计时在窗体设计器文件内生成组件的代码 C#.Net组件开发(高级篇) - 自定义CollectionEditor编辑器 C#.Net组件开发(高级篇) - 开发复杂的设计时组件编辑器 C#.Net组件开发 - 使用Attach to Process实时调试设计器代码 C#.Net组件开发(高级篇) - 使用自定义TypeConverter生成设计时代码 DevExpress Winform 采用GridControl表格组件开发的会计凭证控件(C#源码) C#.NET快速开发框架平台基于DevExpress表格加载大数据性能测试报告 C#.NET开发软件Winform三层架构代码生成器软件
其它资料:
什么是C/S结构? | C/S框架核心组成部分 | C/S框架-WebService部署图 | C/S框架-权限管理 | C/S结构系统框架 - 5.1旗舰版介绍 | C/S结构系统框架 - 功能介绍 | C/S结构系统框架 - 产品列表 | C/S结构系统框架 - 应用展示(图) | 三层体系架构详解 | C/S架构轻量级快速开发框架 | C/S框架网客户案例 | WebApi快速开发框架 | C/S框架代码生成器 | 用户授权注册软件系统 | 版本自动升级软件 | 数据库底层应用框架 | CSFramework.CMS内容管理系统 | |