以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 动态目录树节点 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=116502) |
-- 作者:yifan3429 -- 发布时间:2018/3/25 22:11:00 -- 动态目录树节点 If e.Node.Level = 1 Then 目录树有1层或是2层甚至3层需要动态使用,求吗? \'MainTable = Tables(e.Node.Text) \'Forms(e.Node.Text).Open() Dim tab As WinForm.TabControl = Forms("工作台").Controls("TabControl1") Dim Name As String = e.Node.Text \'获取节点名称 If tab.TabPages(name) Is Nothing Then tab.TabPages.Add(name,name) Dim pb = tab.BaseControl Forms(Name).OPEN(-1000,-1500) Forms(Name).BaseForm.TopLevel = False Forms(Name).BaseForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None Forms(Name).BaseForm.Dock = System.Windows.Forms.DockStyle.Fill PB.TabPages(name).Controls.Clear PB.TabPages(name).Controls.add(Forms(Name).BaseForm) End If tab.SelectedPage = tab.TabPages(name) End If
|
-- 作者:有点甜 -- 发布时间:2018/3/25 23:08:00 -- 判断是否存在表名窗口名,如
If Tables.Contains(e.node.text) AndAlso Forms.Contains(e.node.text) Then |