TreeView_AfterCheck

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a tree view, when I check/uncheck the node checkbox the
TreeView_AfterCheck event (function) occure and I go inside this function.
In this function I trying to fegure which node has been checked , using the
(System.Windows.Forms.TreeView)sender).SelectedNode don't return the node
checked it return the selected node which is not the same as the one checked.
How can I solve this problem ?
 
Hi,
I have a tree view, when I check/uncheck the node checkbox the
TreeView_AfterCheck event (function) occure and I go inside this function.
In this function I trying to fegure which node has been checked , using the
(System.Windows.Forms.TreeView)sender).SelectedNode don't return the node
checked it return the selected node which is not the same as the one checked.
How can I solve this problem ?

The second parameter to the AfterCheck event is of type
TreeViewEventArgs, the Node member of this will be the node that was
checked/unchecked.
 
Back
Top