Form is not a control?
Well yesterday somebody noted that Form is not a co开发者_运维技巧ntrol. Is that right? It inherits the properties like ClientSize which description clearly says it determines the area of control etc. Or is it just MSDN being non accurate?
Inheritance hierarchy according to MSDN:
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.ScrollableControl
System.Windows.Forms.ContainerControl
System.Windows.Forms.Form
This includes System.Windows.Forms.Control
, so it derives from Control
. Or do you mean some other definition of "not a control"?
What do you mean by "is not a control"? If you looks at the MSDN documentation it clearly shows that it derives (indirectly) from System.Windows.Forms.Control...
The inheritance hierarchy indicates otherwise. (Unless they're not following the "is a" rule for inheritance, but I don't see that problem here. They'd probably have been called out on that years ago if that were the case.)
This is really a matter of how you define 'control'.
精彩评论