VB防止程序重复运行

时间:2011-05-21 15:06:30
【文件属性】:
文件名称:VB防止程序重复运行
文件大小:387B
文件格式:TXT
更新时间:2011-05-21 15:06:30
VB 程序重复运行
VB防止程序重复运行

网友评论

  • 程序源码写的不够完美
  • Option Explicit txt文件,内容如下: Public Sub CheckExist(fm As Form) Dim title As String If App.PrevInstance Then title = App.title Call MsgBox("这程序已执行", vbCritical) App.title = "" '如此才不会Avtivate到自己 fm.Caption = "" AppActivate title 'activate先前就已行的程序 End E