Foxtable(狐表)用户栏目专家坐堂 → 禁止重复打开项目导致升级出错的问题


  共有2622人关注过本帖平板打印复制链接

主题:禁止重复打开项目导致升级出错的问题

帅哥哟,离线,有人找我吗?
lianghanyu
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:童狐 帖子:244 积分:2200 威望:0 精华:0 注册:2020/6/28 8:43:00
  发帖心情 Post By:2020/8/4 8:28:00 [只看该作者]

为什么我复制代码后,显示:未声明 MU 

然后我这样改:

Dim sucess As Boolean = False
Dim mu = new System.Threading.Mutex(True, "dsdfhdfghf", sucess)
If not sucess Then
    MessageBox.Show("程序已经在运行,不能重复打开!", "提示",MessageBoxButtons.Ok,MessageBoxIcon.Warning,0, Windows.forms.MessageBoxOptions.ServiceNotification)
    e.Cancel = True
End If

 

 

结果显示:编译错误,forms 不是windows成员


 回到顶部