以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  禁止同一台电脑多开  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=117031)

--  作者:zhenghangbo
--  发布时间:2018/4/4 14:50:00
--  禁止同一台电脑多开
如何做到禁止发布后的项目在同一台电脑上软件多开?
比如QQ可以多开,但是我只想一台电脑上开一个。

--  作者:有点甜
--  发布时间:2018/4/4 14:54:00
--  
在BeforeOpenProject增加代码
 
static mu As system.threading.mutex
Dim sucess As Boolean = False
mu=new system.threading.mutex(True,"xyz",sucess) \'xyz是你的程序名称
If not sucess Then
    e.HideSplashForm = True
    MessageBox.show("系统已经在运行,可退出后重新登录!","提示",MessageBoxButtons.OK,messageboxicon.Information)
    e.cancel=True
End  If

--  作者:zhenghangbo
--  发布时间:2018/4/4 19:27:00
--  
程序名称需要带后缀.exe吗?
--  作者:有点甜
--  发布时间:2018/4/4 19:56:00
--  
以下是引用zhenghangbo在2018/4/4 19:27:00的发言:
程序名称需要带后缀.exe吗?

 

随便填一个名称即可的