我正在尝试为TreeNode AfterCheck事件创建一个事件处理程序。当父母被选中时,我想检查所有的孩子。唯一的问题是,当在运行时创建TreeView时,我不知道如何做到这一点。node
' NOTE This code can be added to the BeforeCheck event handler instead of the AfterCheckPrivate Sub node_AfterCheck(sender As Object, e As TreeViewEvent
我在c#中有一个带有复选框的树视图,我希望当用户选中一个节点时,自动选中下面的级别上的所有节点。有没有人知道如何做到这一点,而不是每次用户检查某个节点时在所有树上运行recorsive函数?//该函数返回treeView。 {
// fill the treeview with all subjects. {
//for