Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在处理TreeView其CheckBoxes属性设置为True. 我想要与 a 中相同的功能CheckListBox,如果我选中 a 的框TreeNode,该节点将被选中;如果我选择一个节点,该节点的复选框将被选中。我不确定我需要连接什么事件才能做到这一点。请帮忙。谢谢。
TreeView
CheckBoxes
True
CheckListBox
TreeNode
尝试以下操作:
private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) { treeView1.SelectedNode.Checked = true; }
这Event与TreeViewsAfterSelect事件有关
Event
AfterSelect