Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi sir,
i want to do some functionality when click on the checkbox treeview node in windows application.i tried aftercheck,afterselect,node mouseclick, nothing works for me.all those events fire when i clicked on either treeview node name ,+ sign and clicked.i want only when i checked the checkbox.plz help me out.
Posted

1 solution

AfterCheck is triggered only when the state of the CheckBox is changed.
TreeView tree = new TreeView();
tree.AfterCheck += new TreeViewEventHandler(tree_AfterCheck);
public void tree_AfterCheck(object sender, TreeViewEventArgs e)
{
   /* do something with e.Node */
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900