Visual Basic .NET 中按钮、复选框和单选按钮的使用
1. 按钮的使用
在 Visual Basic .NET 中,按钮是与文本框一样最常用的控件之一。它是通过事件与用户进行交互时最容易使用的用户界面元素。
1.1 按钮类的层次结构
按钮类(Button)基于 Control 类,其类层次结构如下:
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.ButtonBase
System.Windows.Forms.Button
1.2 按钮的重要属性和方法
| 属性 | 含义 |
|---|---|
| DialogResult | 按钮被点击时发送给父窗体的值,仅用于对话框 |
| FlatStyle | 设置按钮是否具有扁平外观 |
| Image | 设置按钮中显示的图像 |
| ImageAlign | 设置按钮中图像的对齐方式 |
超级会员免费看
订阅专栏 解锁全文
1569

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



