If App.PrevInstance Then MsgBox "此程序已经运行!", vbInformation End End If
注意慎用end语句强行结束应用程序。
If App.PrevInstance Then MsgBox "此程序已经运行!", vbInformation End End If
If App.PrevInstance = True Then '限制程序在本机上多次运行 MsgBox "程序已经在运行!", vbExclamation + vbOKCancel, "医院管理系统" Else frmconnection.Show 'App.TaskVisible = False End If
MsgBox "此程序已经运行!", vbInformation
End
End If
注意慎用end语句强行结束应用程序。
MsgBox "此程序已经运行!", vbInformation
End
End If
MsgBox "程序已经在运行!", vbExclamation + vbOKCancel, "医院管理系统"
Else
frmconnection.Show
'App.TaskVisible = False
End If