且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何自定义控件

更新时间:2022-06-01 02:39:18

在Visual Studio中,右键单击您的项目,然后选择添加" ...用户控件".给它起一个合理的名称(也许是"CheckImage"),然后按"Add".
在出现的表面上,拖动一个PictureBox控件和一个CheckBox.
构建控件,然后可以根据需要将其添加到项目表单中.
In Visual Studio, right click your project and select "Add"..."User Control". Give it a sensible name ("CheckImage" perhaps) and press "Add".
Onto the surface that appears, drag a PictureBox control, and a CheckBox.
Build your control, and you can then add it to your project form as required.