Apr 6th, 2012, 02:42 PM
[RESOLVED] How to get +/- on TreeView Root node?
This should be pretty simple but the "formula" is escaping me right now.
I'm using a plain old VB6 TreeView control from MSCOMCTL.OCX and I have loaded a small tree of nodes. I have the Style property set to 6 (tvwTreelinesPlusMinusText). After I load the TreeView control's node hierarchy, I leave everything unexpanded.
What I want is an indication that there are nodes present (to be expanded) under the Root of the tree, but I don't get a +/- box to the left of the Root node. After expanding the Root I do see these for child nodes with children however.
I know I've seen this in other software. Is this a quirk of the VB6 TreeView control or is there a property setting that will show these?
Here are screenshots before and after I manually expand the Root node:
Click Here to Expand Forum to Full Width
Survey posted by VBForums.