VB程序学习代码记录20160723(2)
来源:互联网 发布:php 虚拟主机ip配置 编辑:程序博客网 时间:2024/06/06 09:37
菜单改变背景色
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = 2 Then PopupMenu MyMenu End IfEnd SubPrivate Sub red_click() Form1.BackColor = vbRedEnd SubPrivate Sub black_click() Form1.BackColor = vbBlackEnd SubPrivate Sub green_click() Form1.BackColor = vbGreenEnd SubPrivate Sub white_click() Form1.BackColor = vbWhiteEnd SubPrivate Sub blue_click() Form1.BackColor = vbBlueEnd Sub
菜单数组
Private Sub menu1_Click(Index As Integer) On Error GoTo MyErr Select Case Index Case 0 Load frm_jcxxwh_qysz frm_jcxxwh_qysz.Show 1 Case 2 Load frm_jcxxwh_qyxz frm_jcxxwh_qyxz.Show 1 Case 3 Load frm_jcxxwh_qylx frm_jcxxwh_qylx.Show 1 Case 4 Load frm_jcxxwh_qyzx frm_jcxxwh_qyzx.Show 1 End SelectMyErr: MsgBox "该程序为演示程序,不能调用对应窗体!", vbInformation, "信息提示"End Sub
0 0
- VB程序学习代码记录20160723(2)
- VB程序学习代码记录20160723
- VB程序学习代码记录20160718(2)
- VB程序学习代码记录20160722(2)
- VB程序学习代码记录20160711
- VB程序学习代码记录20160713
- VB程序学习代码记录20160714
- VB程序学习代码记录20160715
- VB程序学习代码记录20160717
- VB程序学习代码记录20160718
- VB程序学习代码记录20160719
- VB程序学习代码记录20160721
- VB程序学习代码记录20160722
- VB程序学习代码记录20160724
- VB程序学习代码记录20160725
- VB程序学习代码记录20160726
- VB程序学习代码记录20160729
- VB程序学习代码记录20160730
- 算法学习(数据结构)-程序员必回
- Android Plugin 插件化技术-Small插件框架
- Commons IO 用法举例
- MSM8976平台概述
- struts2中<s:select>标签的使用
- VB程序学习代码记录20160723(2)
- C++ 控制台窗口隐藏及其代码 【网上摘抄,方便查询】
- <s:iterator>的status属性
- Linux 下载与安装MongoDB
- 如何在 Linux 上录制你的终端操作
- 从今天开始,开始新的学习路程
- 原生js轮播图的实现
- Small:轻巧的跨平台插件化框架
- struts2的redirectAction类型