Foxtable(狐表)用户栏目专家坐堂 → 为什么页面的页签关闭再用目录树打不开呢


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

主题:为什么页面的页签关闭再用目录树打不开呢

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


加好友 发短信
等级:超级版主 帖子:106665 积分:542508 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/2/26 14:31:00 [只看该作者]

If e.Node.Level = 1 Then
    Dim t As WinForm.TabControl = e.Form.Controls("TabControl1")
    Dim p = t.TabPages(e.Node.Text)
    
    If p IsNot Nothing Then
        'Dim i = t.SelectedIndex(p)
        't.tabpages(i).Visible = True
p.visible = True
        t.SelectedPage = p
        't.Visible = True
        
        Return
    End If
    'Dim tab As WinForm.TabControl = e.Form.Controls("TabControl1")
    'tab.tabpages(1).Visible = True
    
    p = t.TabPages.Add(e.Node.Text ,e.Node.Text)
    Forms(e.Node.Text).OPEN(-1000,-1500)
    Forms(e.Node.Text).baseform.Dock = System.Windows

 回到顶部