S
Scott Toney
I have a treeview with 2 Root Nodes. The first node has no children whereas
the second node has children. When I click on the "Plus" sign on the second
Root Node, it picks up the first Root Nodes information, shows the
messagebox for First Node. What can I do to prevent that?
In the treeview_afterselect, I have the following:
If (e.Node.GetNodeCount(True) = 0) And (e.Node.IsSelected) Then
'Section 1
If (e.Node.Parent Is Nothing) And (e.Node.GetNodeCount(True) = 0) Then
MessageBox.show("First Node")
LoadRooms(e.Node.Index + 1)
Else
'Section 2
If (e.Node.Parent.Parent Is Nothing) Then
MessageBox.Show("Second Node")
LoadRooms(e.Node.Parent.Index + 1)
end if
end if
end if
Thanks
Scott
the second node has children. When I click on the "Plus" sign on the second
Root Node, it picks up the first Root Nodes information, shows the
messagebox for First Node. What can I do to prevent that?
In the treeview_afterselect, I have the following:
If (e.Node.GetNodeCount(True) = 0) And (e.Node.IsSelected) Then
'Section 1
If (e.Node.Parent Is Nothing) And (e.Node.GetNodeCount(True) = 0) Then
MessageBox.show("First Node")
LoadRooms(e.Node.Index + 1)
Else
'Section 2
If (e.Node.Parent.Parent Is Nothing) Then
MessageBox.Show("Second Node")
LoadRooms(e.Node.Parent.Index + 1)
end if
end if
end if
Thanks
Scott