Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 353
  • Last Modified:

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

0
sirbounty
Asked:
sirbounty
1 Solution
 
VBRocksCommented:
Set them to be the same.

0
 
sirbountyAuthor Commented:
Hmm - then can I override the instance creation to pass that index value and assign all 3 there?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now