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.
如何为树视图控件的子节点编写单击事件...如果我单击子节点,则应该可以看到静态面板。
据我所知,唯一的方法是以编程方式告诉选择了哪个节点(通过 e.Node 参数检索适当的节点),然后触发相应的功能。此代码可以放在 TreeView.AfterSelect 事件中。