本文介绍了用户控件与Windows窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是用户控件和Visual Studio中的Windows窗体之间的区别? - C#
What is the difference between a user control and a windows form in Visual Studio - C#?
推荐答案
将很干脆:
用户控件是做一个自定义的,可重用的组件的方式。用户控件可以包含其他控件,但必须由形式举行。
User controls are a way of making a custom, reusable component. A user control can contain other controls but must be hosted by a form.
Windows窗体是控件,包括用户控件的容器。虽然它包含许多类似的属性作为一个用户控件,它的主要目的是主持的控制。
Windows forms are the container for controls, including user controls. While it contains many similar attributes as a user control, it's primary purpose is to host controls.
这篇关于用户控件与Windows窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!