How to address TreeView.node in BeforeCheck
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
How to address TreeView.node in BeforeCheck
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?
How to address TreeView.node in BeforeCheck
Please refer to the following blog articles for help with the TreeView: Spotlight on the TreeView Control Part 1Spotlight on the TreeView Control Part 2 Nodes at the top level will have its Parent property equal to null. David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.