Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

treenode images

Posted on 2009-04-08
2
Medium Priority
?
345 Views
Last Modified: 2013-12-26
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
Comment
Question by:sirbounty
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
VBRocks earned 1200 total points
ID: 24100101
Set them to be the same.

0
 
LVL 67

Author Comment

by:sirbounty
ID: 24100330
Hmm - then can I override the instance creation to pass that index value and assign all 3 there?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

661 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question