Hi All,
I want to create a custom treeview control in which some nodes will have image and some will not. What should do for this, Need some Help.

Recommended Answers

All 6 Replies

You can do it from TreeView properties, it's so easy to make it on your own.

Treeview allows either to have image or not at all. It does not allow image in some nodes and some nodes without image.

You can do it programatically Node.Image and set it by your hand..

Sorry,I have not found any Node.Image Property instead we have to set it by ImageList Control. Once we use ImageList then treeview control automatically uses an image from imagelist to set to those nodes for which we have not set any image.

You could also set a blank image for those who do not need an image.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.