Treeview in VB.NET

  • Thread starter Thread starter Sreepathi Rao Konchada
  • Start date Start date
S

Sreepathi Rao Konchada

Hi,
Is there any way that we can find the previously selected
Treeview node details. I mean is there any build in
function available to find the previously selected node
of the Treeview in VB.NET.

Thanks,
Sreepathi Rao.
 
Use the Click event of the treeview. It is always one
node behind the AfterSelect event. When the Click event
fires, the new selection has not yet been made, so the
argument passed to the Click event is still pointing to
the previously selected node. That is unless the user
clicks the same node twice in a row. But, in that case
the AfterSelect event does not fire because the node is
already selected.


I have an article on this at
http://www.knowdotnet.com/articles/afterselecteventintreevi
ew.html


Hope this helps.

Articles, books, free code, add-ins at
http://www.knowdotnet.com
 
Back
Top