初学者的问题,关于程序的编写!(附代码)
有一个事件
Private Sub hellp_Click(index As Integer)
Module.AllClose
Select Case index
Case 1
StatusBar1.Panels(1).Text = “1”
Case 3
StatusBar1.Panels(1).Text = ”2“
End Select
End Sub
有一模块
Sub CheckPrint()
Dim X As Printer
Dim HavePrinter As Boolean
HavePrinter = False
For Each X In Printers
Set Printer = X
HavePrinter = True
Exit For
Next
If Not (HavePrinter) Then
MsgBox "没有安装打印机!"
Exit Sub
End If
End Sub
当我的模块检测到没有安装打印机之后,他依然回到事件中继续下面的代码!
我想如果返回“没有安装打印机!”后就让他跳出事件怎么写啊?
初学者的问题,各位不要笑话我,我太弱了!
Private Sub hellp_Click(index As Integer)
Module.AllClose
Select Case index
Case 1
StatusBar1.Panels(1).Text = “1”
Case 3
StatusBar1.Panels(1).Text = ”2“
End Select
End Sub
有一模块
Sub CheckPrint()
Dim X As Printer
Dim HavePrinter As Boolean
HavePrinter = False
For Each X In Printers
Set Printer = X
HavePrinter = True
Exit For
Next
If Not (HavePrinter) Then
MsgBox "没有安装打印机!"
Exit Sub
End If
End Sub
当我的模块检测到没有安装打印机之后,他依然回到事件中继续下面的代码!
我想如果返回“没有安装打印机!”后就让他跳出事件怎么写啊?
初学者的问题,各位不要笑话我,我太弱了!
...全文
相关推荐
bootstrap-switch.css
开关按钮样式文件bootstrap-switch.css 开关按钮样式文件bootstrap-switch.css 开关按钮样式文件bootstrap-switch.css 开关按钮样式文件bootstrap-switch.css 开关按钮样式文件bootstrap-switch.css 开关按钮样式文件bootstrap-switch.css 开关按钮样式文件bootstrap-switch.css 开关按钮样式文件bootstrap-switch.css
bootstrap-switch.min.css
bootstrap-switch.min.css
bootstrap的switch控件需要引入的js和css文件
bootstrap的switch控件需要引入的js和css文件,自己整理的!
bootstrap-switch
bootstrap-switch 滑动,带事件,带自定义样式
bootstrap switch开关组件使用方法详解
主要为大家详细介绍了bootstrap switch开关组件的使用方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下


VB基础类
