Link to home
Start Free TrialLog in
Avatar of sirbounty
sirbountyFlag for United States of America

asked on

treenode images

I'm dynamically creating nodes on my form based upon 3 different conditions.
Consider it Best, Good, Bad for example.
I 'only' will want an associated icon/image depending on those values.
So far, so good.
However, I've noticed that when I assign the imageindex correctly, there are two other states to be concerned with - dropdown state and selected state.  
How can I simply ignore those and use the imageindex property alone?
Surely I don't have to assign all 3 do I?
Dim tn As New TreeNode(MyData)
tn.ImageIndex = 2 'Bad

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of VBRocks
VBRocks
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sirbounty

ASKER

Hmm - then can I override the instance creation to pass that index value and assign all 3 there?