如何编译windows控件

来源:百度知道 编辑:UC知道 时间:2024/05/25 20:44:53
我在VS2003中创建了一个windows控件库,却不知道怎么编译,新手,请赐教

生成控件

在Visual Studio .net 中, 用Windows控件库来作为模板,生成一个新的项目.项目的名称为 ctlCuteButton.
首先么做的就是要修改cuteButton的父类
修改下面这行:

public class cuteButton : System.Windows.Forms.Control

改为:

public class cuteButton : System.Windows.Forms.Button