如何将图像列表中的图像分配给树视图 [英] How do I assign images from the imagelist to the treeview

查看:82
本文介绍了如何将图像列表中的图像分配给树视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在节点集合上有treeView


我的目标是:


当在节点中选择一个节点时treeview节点的图像将会改变


任何帮助都会很棒

解决方案

试试链接如下:


http://stackoverflow.com/questions/3415354/how-to-avoid-winforms-treeview-icon-changes-when-item-selected


http://stackoverflow.com/questions/1656567/image-index-of- treeview-node-changes-upon-selection


I have the treeView on node collection

What I'm aiming for is:

When a node is selected in the treeview the image for the node will change

Any help would be great

解决方案

try the links below:

http://stackoverflow.com/questions/3415354/how-to-avoid-winforms-treeview-icon-changes-when-item-selected

http://stackoverflow.com/questions/1656567/image-index-of-treeview-node-changes-upon-selection


这篇关于如何将图像列表中的图像分配给树视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆