在程序运行时用如下语句: if app.PrevInstance=true then end end if
If App.PrevInstance Then MsgBox "已经有一个 " & App.ProductName & " 在你的电脑上运行着!" Exit Sub End If
'ÅжÏÊÇ·ñÒѾ­Æô¶¯ If App.PrevInstance = True Then MsgBox "³ÌÐòÒѾ­ÔËÐС£", vbExclamation, g_cnststrMsgTitle End End If
if app.PrevInstance=true then
end
end if
MsgBox "已经有一个 " & App.ProductName & " 在你的电脑上运行着!"
Exit Sub
End If
If App.PrevInstance = True Then
MsgBox "³ÌÐòÒѾ­ÔËÐС£", vbExclamation, g_cnststrMsgTitle
End
End If