什么是Windows窗体的基类窗体? [英] What is the base class form Windows Form?
本文介绍了什么是Windows窗体的基类窗体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果创建一个新的WinForms应用程序,则可以看到Form1继承自Form.我以为Form是一个控件. MSDN说,所有控件都从UserControl类继承.还怎么回事? 难道所有表单都从基础Form类继承吗?
If I create a new WinForms application, I can see that that Form1 inherits from Form. I thought that Form is a control. MSDN says that all controls inherit from UserControl class. Also how it is? Also do all Forms inherit from base Form class?
推荐答案
Form
和 UserControl
都分别从 ContainerControl
,它源自 ScrollableControl
,它源自 Control
Form
and UserControl
both derive separately from ContainerControl
, which derives from ScrollableControl
, which derives from Control
.
这篇关于什么是Windows窗体的基类窗体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文