Foxtable(狐表)用户栏目专家坐堂 → [求助]页面关闭按钮


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

主题:[求助]页面关闭按钮

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/5/30 18:51:00 [显示全部帖子]

Dim e =args(0)
Dim sender =args(1)
If e.TabPage.Name = "主页" Then
    e.Cancel = True
Else
    Dim Result As DialogResult
    Result = MessageBox.Show("是否关闭?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
    If Result = DialogResult.Yes Then
        Dim frm As WinForm.Form = Forms("serevmain")
        Dim ls As new List(of String)
        For Each c As object In e.tabpage.controls
            If c.Gettype.name.contains("o_O0_oO0") Then
                c.visible = False
            End If
            ls.add(c.name)
        Next
        For Each s As String In ls
            frm.removeControl(s)
            'DataTables.Unload(s)
        Next       
    Else
        e.Cancel = True
    End If
End If

 回到顶部