本文介绍了如何在treeview1 = treeview2中设置选择...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 在treeView1中我有文件名和目录... 例如... Folder1Name File1Name Folder2Name File2Name 在treeview2中我有完整的文件名和完整目录... 例如...... C:\ File1Name C:\Folder1Name \File1Name.ext C:\ File2Name C:\ File2Name \File2Name.ext b $ b 我想设置treeview1 = treeview2,这样当用户点击treeview1时,它可以打开文件而无需用户查看来自treeview2的整个目录名...任何帮助表示赞赏。谢谢!In treeView1 I have the filenames and directories...For example...Folder1Name File1NameFolder2Name File2NameIn treeview2 I have the full filename and full directory...For example...C:\Folder1Name C:\Folder1Name\File1Name.extC:\Folder2Name C:\Folder2Name\File2Name.extI want to set treeview1 = treeview2 so that when the user clicks on treeview1 it can open the files without the user having to look at the whole directory name from treeview2...any help appreciated. Thank you!推荐答案 .Tag属性有效!非常感谢!The .Tag property worked! Thank you very much! 一个想法是,当你填写treeview1时,为每个节点设置Tag属性来保存信息。 One idea is, when you are filling treeview1 set the Tag property for each node to hold the information.TreeNode.Tag Property 这篇关于如何在treeview1 = treeview2中设置选择...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 11-01 15:12