首页 » Visual Basic » VB程序防止重复运行

VB程序防止重复运行

Private Sub Form_Load()
If App.PrevInstance Then
    msgbox "不能重复运行本程序"
    Unload Me
End if
End Sub
'还有一种方法找到了再发出来。

, ,

转发到新浪微博 转发到新浪微博

目前这篇文章有1条评论(Rss)

  1. Artykuly | #1
    05/17/2012 at 08:13

    so much wonderful information on here, : D.

我要评论