vb复习总结分析.ppt

第1章 内部控件 3.控件的常用的属性、事件与方法 (1)窗体(Form):(设计期称窗体、运行期称窗口) 常用属性:Name、 Caption、AutoRedraw、BackColor、 ForeColor、 Font 、Picture( 窗体上显示的图片)、BorderStyle(窗体的边框样式)、 ControlBox(窗体是否具有控制菜单)、 WindowState(运行时窗体是正常、最小化还是最大化) 常用事件:Load、 Activate 、 Click、DblClick 常用方法: Print、Cls、Move、Show和Hide (2)命令按钮 常用属性:Name、 Caption(注意“”符号的使用)、TooltipText、Style(0-Standard,1-Graphical 可显示图形或设置颜色)、 Picture、 Enabled、 Visible 常用事件: Click 常用方法: SetFocus (3)文本框 常用属性:Name、text、 MultiLine、 PasswordChar (此时MultiLine属性值应为False) 、 ScrollBars(仅当MultiLine属性值为True时才可以带滚动条)、 SelLength 、 SelStart 、SelText、 Locked、 常用事件:KeyPress(与KeyDown区

文档评论(0)

1亿VIP精品文档

相关文档