更新时间:2023-12-06 10:11:34
是的,UserControl 在设计器中提供了一个类似于表单的画布,供您添加其他控件(按钮等).
Yes, a UserControl provides a form-like canvas in the designer for you to add other controls (buttons, etc).
您也可以通过继承面板并编写代码来添加按钮和连接它们的事件等来完成此操作,但您不会获得设计器的支持.
You can do this too by inheriting a panel and writing the code to add the buttons and wire their events, etc, but you won't get the designer support.