使用TreeView控件在设置结点的Parent后,这个结点的index会变成Parent里的第一个,
请问有没有办法让他变成Parent所有Child结点里的最后一个
[解决办法]
'我感觉也是没变,下面是我的测试:
Private Sub Form_Load()TreeView1.Nodes.Add , , "AA", "aaa"TreeView1.Nodes.Add "AA", tvwChild, "a1", "a1"TreeView1.Nodes.Add "AA", tvwChild, "a2", "a2"TreeView1.Nodes.Add "AA", tvwChild, "a3", "a3"TreeView1.Nodes.Add "a1", tvwChild, "b1", "b1"TreeView1.Nodes.Add "a1", tvwChild, "b2", "b2"TreeView1.Nodes.Add "a1", tvwChild, "b3", "b3"TreeView1.Nodes.Add "a2", tvwChild, "c1", "c1"TreeView1.Nodes.Add "a2", tvwChild, "c2", "c2"TreeView1.Nodes.Add "a2", tvwChild, "c3", "c3"Set s = TreeView1.Nodes(8).ParentMsgBox s.TextMsgBox s.IndexMsgBox TreeView1.Nodes(8).TextEnd Sub
[解决办法]