Windows Forms 编程详解
1. Windows Forms 基础
Windows 窗体基于 Form 类,确切地说是 System.Windows.Forms.Form 类。该类继承自 System.Windows.Forms.ContainerControl 类,而 ContainerControl 类又继承自 System.Windows.Forms.ScrollableControl 类,其继承层次如下:
graph LR
A[System.Object] --> B[System.MarshalByRefObject]
B --> C[System.ComponentModel.Component]
C --> D[System.Windows.Forms.Control]
D --> E[System.Windows.Forms.ScrollableControl]
E --> F[System.Windows.Forms.ContainerControl]
F --> G[System.Windows.Forms.Form]
每个类都继承了其前身的功能。有趣的是,窗体实际上是经过修改的控件,它和其他控件(如按钮或文本框)一样基于 Control 类。这意味着你可以对窗体执行与控件相同的操作,例如窗体也有
超级会员免费看
订阅专栏 解锁全文
2890

被折叠的 条评论
为什么被折叠?



