I have a plain TreeView with a few nodes, some of them are parent, some others aren’t parent nodes. The parent nodes get the folder icon while the others get the document icon. It happens I don’t want any icon at all, but I can’t get rid of the icons.
Hi Alex and Tiago,
we will introduce new properties TreeView.HideNodeImages and TreeNode.HideNodeImage to allow
control on either the TreeView or individual node level.
So there will be no need for a “hack” anymore.
I have logged WJ-7670 for it.
I wanted the same, and Frank suggested to set an ImageList item with size (1, 1). Unfortunately the space taken by the default icons is still taken, i.e there is an empty space between the expand/collapse icon and the node Label, where the node image would be if you hadn’t set a 1×1 px image. On top of that, I noticed that during collapce, the default image showed up for a split second. That was with Classic-2 and an earlier beta version, haven’t checked lately. If you find a better way let me know.
Please login first to submit.