C
Christoph Boget
I have a TreeView object that I'm filling in with the directory
structure. However, for the sake of this learning exercise, I
am making it flat. So that when a user clicks on the directory
name, I refresh the TreeView with the contents of the new
directory. All that is more or less working.
What I've noticed is that if I select node X, when I Clear()
the nodes and go to refresh with the contents of the new
directory, the AfterSelect event (or, at least, my AfterSelect
event method) is triggered for node X-1 through node 0 in
turn. Why is that? How can I make it so that the event is
triggered only once and only when a node is clicked?
thnx,
Chris
structure. However, for the sake of this learning exercise, I
am making it flat. So that when a user clicks on the directory
name, I refresh the TreeView with the contents of the new
directory. All that is more or less working.
What I've noticed is that if I select node X, when I Clear()
the nodes and go to refresh with the contents of the new
directory, the AfterSelect event (or, at least, my AfterSelect
event method) is triggered for node X-1 through node 0 in
turn. Why is that? How can I make it so that the event is
triggered only once and only when a node is clicked?
thnx,
Chris