G
Guest
VS2005
I have a Tree control that after loading when initially displayed, all top
level nodes are collapsed. When the user expands the the node, I want to do
some processing of all the nodes under that one. So I use the AfterExpand
method. However, if the user only clicks the + to expand the node and
doesn't actually click on the node to select it, the value of Selected Node
is Nothing.
Here's the code I am trying to do in the AfterExpand routine:
Dim n As TreeNode
For Each n In treeRoles.SelectedNode.Nodes
'Do stuff here
Next
How can I accomplish this when I expect that the user will only click the +
and not actually click on the node?
I have a Tree control that after loading when initially displayed, all top
level nodes are collapsed. When the user expands the the node, I want to do
some processing of all the nodes under that one. So I use the AfterExpand
method. However, if the user only clicks the + to expand the node and
doesn't actually click on the node to select it, the value of Selected Node
is Nothing.
Here's the code I am trying to do in the AfterExpand routine:
Dim n As TreeNode
For Each n In treeRoles.SelectedNode.Nodes
'Do stuff here
Next
How can I accomplish this when I expect that the user will only click the +
and not actually click on the node?