如何自定义控件 [英] how to customise a control
本文介绍了如何自定义控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个自定义控件的要求,该控件应包含图像占位符和复选框.
所以有人可以告诉我我该怎么做...
thnx,
hi all ,
I have a requirement of customizing a control which should be comprise of a image placeholder and a check box..
So can somebody tell me how can i do that ...
thnx ,
推荐答案
在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.
这篇关于如何自定义控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文