How to address TreeView.node in BeforeCheck
Posted: Tue Jan 24, 2012 12:09 am
What is the equivalent for $nodeToBeChecked in the code below?$treeview1_BeforeCheck=[System.Windows.Forms.TreeViewCancelEventHandler]{ if($nodeToBeChecked ...){ $_.Cancel = $true # do not want this node to be able to be checked }PS. It is possible to turn on checkbox for only top level nodes in the tree?