Dim tv As WinForm.TreeView = e.Form.Controls("TreeView1") tv.Nodes.Clear For Each itm As object In QAT.Items Dim nd As object = tv.Nodes.Add(itm.Name) If itm.Gettype.name <> "Button" Then For Each citm As object In itm.items Dim cnd As object = nd.Nodes.Add(citm.Name) If citm.Gettype.name <> "Button" Then For Each ccitm As RibbonMenu.RibbonItem In citm.items Dim ccnd As object = cnd.Nodes.Add(ccitm.Name) Next End If Next End If Next
|