以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]求助不能如何设置同时打开多个开发版发布的程序  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=54445)

--  作者:zhengboxin
--  发布时间:2014/7/28 17:24:00
--  [求助]求助不能如何设置同时打开多个开发版发布的程序

用开发版发布的程序,双击就打开一个,可以无限打开,我想求助的是怎么在系统启动前就提示程序已打开,然后确定就关闭刚刚打开的

 

麻烦各位老师了,万分感谢


--  作者:有点甜
--  发布时间:2014/7/28 17:25:00
--  

全局代码:

Public mu As System.Threading.Mutex

 

BeforeOpenProject事件:

Dim sucess As Boolean = False
mu = new System.Threading.Mutex(True, "dsdfhdfghf", sucess)
If not sucess Then
    MessageBox.Show("只能打开一次!")
    e.Cancel = True
End If


--  作者:zhengboxin
--  发布时间:2014/7/29 8:03:00
--  
谢谢老师,昨天不在电脑前