Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:关于Tree 中的一些问题

1楼
kgd815 发表于:2011/6/12 23:08:00

打开窗口后就执行

Dim TV As WinForm.TreeView = e.Form.Controls("TreeView1")
Dim N As WinForm.TreeNode
Dim N1 As WinForm.TreeNode
Dim N2 As WinForm.TreeNode
Dim N3 As WinForm.TreeNode

N=TV.Nodes.Add ("BOOT","系统菜单")
n.Checked= True
For Each T As RibbonMenu.Tab In RibbonTabs
    N1=N.Nodes.Add(t.Name,t.Text)

    N1.CHECKED=TRUE
    For Each G As RibbonMenu.Group In T.Groups
        N2=N1.Nodes.Add(G.Name,G.Text)

        N2.CHECKED=TRUE
        For Each C As RibbonMenu.RibbonItem In G.Items
            If C.ToolTip<>""
                N3=N2.Nodes.Add(C.Name,C.ToolTip)

                N3.CHECKED=TRUE
            End If
        Next
    Next
Next

TV.ExpandAll

 

但是,打开窗口根本看不到,程序就没了,不知什么原因

2楼
狐狸爸爸 发表于:2011/6/13 7:45:00
代码看不出问题,做个简单例子上来。
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02344 s, 2 queries.