Private Sub Form_Load() If App.PrevInstance Then MsgBox "对不起,你已经打开了一个" & App.EXEName & "程序,本程序不能重复运行!", vbCritical, Me.Caption Unload Me End If End Sub
以下是引用Joforn在2007-3-16 22:18:08的发言: Private Sub Form_Load() If App.PrevInstance Then MsgBox "对不起,你已经打开了一个" & App.EXEName & "程序,本程序不能重复运行!", vbCritical, Me.Caption Unload Me End If End Sub
就这样??不行哦!
If Dir(\"alive\") <> \"\" And Dir(\"ideal\") <> \" Then
Print \"strive\"
End If