以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 关于禁止程序重复启动 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=105941) |
-- 作者:裴保民 -- 发布时间:2017/8/29 17:13:00 -- 关于禁止程序重复启动 怎么限制程序重复打开呢? |
-- 作者:有点甜 -- 发布时间:2017/8/29 17:14:00 -- BeforeOpenProject事件
static mu As System.Threading.Mutex
Dim sucess As Boolean = False
mu = new System.Threading.Mutex(True, "aaabbbccc", sucess)
If not sucess Then
MessageBox.Show("系统已经在运行,请退出后重新登录!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
e.Cancel = True
End If
|
-- 作者:裴保民 -- 发布时间:2017/8/29 20:55:00 -- System.Threading.Mutex代表什么意思呀?帮助文件和代码精灵都没有呀?
|
-- 作者:有点蓝 -- 发布时间:2017/8/29 21:08:00 -- .net的用法,已经超出帮助范围 |
-- 作者:裴保民 -- 发布时间:2017/8/29 21:31:00 -- "aaabbbccc"参数指的是不是程序名称呀? |
-- 作者:有点蓝 -- 发布时间:2017/8/29 22:45:00 -- 随便指定一个字符就可以 |