以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]菜单首页的问题。  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=143793)

--  作者:manyifuwu
--  发布时间:2019/12/4 16:16:00
--  [求助]菜单首页的问题。
有两个窗口,1、主窗口。2、派工             希望打开项目后这个两个窗口都打开,并都不能关闭。谢谢指导,下面的代码怎么改呢?



\'页签主页不能关闭
Public Sub _TabPageClosing(sender As Object, e As C1.Win.C1Command.TabPageCancelEventArgs)
\'页面关闭按钮点击事件
If e.TabPage.Name = "派工" And vars("canclose")=True Then
    vars("canclose")=False
    MessageBox.Show("首页不能关闭!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
    e.Cancel = True
End If
Return
End Sub
\'保存代码
Public Sub SaveCode_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Functions.Execute("Design_SaveCode")
End Sub
Public hszd As new Dictionary(of String,String)
Public hsdms As new Dictionary(of String,String)

--  作者:有点蓝
--  发布时间:2019/12/4 16:22:00
--  
If (e.TabPage.Name = "派工" orelse e.TabPage.Name = "主窗口") And vars("canclose")=True Then