且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何检查SelectedNode是TreeView中的父节点

更新时间:2023-11-25 23:19:04

所选节点及其父节点如何相同?你的逻辑是错误的.如果要检查是否选择了节点,则必须检查SelectedNode是否为空(VB中没有).
How can a selected node and it''s parent be the same? Your logic is wrong. If you wish to check if a Node is selected or not, you have to check if the SelectedNode is null (Nothing in VB).