Foxtable(狐表)用户栏目专家坐堂 → 打开项目。


  共有9618人关注过本帖树形打印复制链接

主题:打开项目。

美女呀,离线,留言给我吧!
bm
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:一尾狐 帖子:437 积分:3463 威望:0 精华:0 注册:2011/9/13 23:27:00
打开项目。  发帖心情 Post By:2011/11/8 23:45: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

这个代码好像没什么用啊

[此贴子已经被作者于2011-11-9 0:08:10编辑过]

 回到顶部