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.
我有树视图和 2 个图像列表第一个图像列表仅包含 42x42 和第二个 36x36 的图像,第一个用于根,第二个用于子级。是否可以为树视图选择 2 个图像列表
所以...第二个问题:我有管理员添加的用户。我现在如何在添加用户时创建子节点,但是如何添加当前根?
TreeView 仅支持从单个 ImageList 中选择图像。您可以将两个 ImageList 实例组合成一个 42x42 的新实例,但这可能无法很好地呈现。
我想我理解你的第二个问题。将 TreeView.ShowRootLines 值设置为 false,然后将节点添加到 TreeView.Nodes 集合。