how to detect wich node was unselected when I select another node???

altariamx2003
altariamx2003 used Ask the Experts™
on
I know how to detect wich node was selected in a treeview

But, Is there a way to detect wich node was unselected when I select another node of the treeview????
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014
Commented:
I think you would need to maintain a node reference manually

Public class form1
Dim PreviousNode As TreeNode

TreeView_AfterSelect:

If Not IsNothing(PreviousNode) Then
    ...
End If
...
PreviousNode = e.Node
End Sub

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial