以文本方式查看主题

-  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=119107)

--  作者:linswcfr
--  发布时间:2018/5/17 17:56:00
--  [求助]提示已添加了具有相同键的项
 下载信息  [文件大小:   下载次数: ]
图片点击可在新窗口打开查看点击浏览该文件:页面关闭按钮.table


打开第一次正常,关闭后再打开就出错

--  作者:有点甜
--  发布时间:2018/5/17 18:58:00
--  

全局代码

 

Public Sub _TabPageClosing(sender As Object, e As C1.Win.C1Command.TabPageCancelEventArgs)
\'页面关闭按钮点击事件
If e.TabPage.Name = "主页" Then
    MessageBox.Show("主页不能关闭!")
    e.Cancel = True
Else
    Dim frm As WinForm.Form = Forms(Sender.parent.name)
    Dim ls As new List(of String)
    For Each c As object In e.tabpage.controls
        If c.Gettype.name.contains("o__o_00_") Then
            c.visible = False            
            \'msgbox(1)
        End If
        ls.add(c.name)
    Next
    For Each s As String In ls       
        frm.removeControl(s)
    Next
End If
End Sub