Solved

TreeView

Posted on 2002-06-23
8
291 Views
Last Modified: 2010-05-02
How to put + - symbol in TreeView control. already tried lot. Can any one help me. Aready changed the Style properties. Still I can't find the symbols and image also. But design time I can view whatever I change the style.
0
Comment
Question by:osmjahir
8 Comments
 
LVL 4

Accepted Solution

by:
mcoop earned 50 total points
ID: 7101432
Do you mean the child node indicator ??  or you want to plac a custom icon at a specific node ??

Chils indicators are added automatically by the Treeview control - as long as the style includes ***PLUSMINUS*** in it's name.. !

If the latter, then you need an imagelist with the desired icons loaded, then programmatically set the desired image key as when requored against the treeview node.



0
 
LVL 1

Expert Comment

by:riaz9
ID: 7101533
try this:

treNavigate.LineStyle = tvwRootLines
'to add the parent node(the last parameter is the key of the imagelist image)
treNavigate.Nodes.Add , , "M", "Mark", "Mark"
'to add child nodes (the last parameter is the key of the imagelist image)
treNavigate.Nodes.Add "M", tvwChild, "T" & rsTopics!Topic_Code, rsTopics!Descr, "Topic"

HTH
Riaz                      
0
 
LVL 1

Expert Comment

by:riaz9
ID: 7101536
try this:

treNavigate.LineStyle = tvwRootLines
'to add the parent node(the last parameter is the key of the imagelist image)
treNavigate.Nodes.Add , , "M", "Mark", "Mark"
'to add child nodes (the last parameter is the key of the imagelist image)
treNavigate.Nodes.Add "M", tvwChild, "T" & rsTopics!Topic_Code, rsTopics!Descr, "Topic"

HTH
Riaz                      
0
 
LVL 1

Expert Comment

by:riaz9
ID: 7101538
note: you need to set the imagelist to the treeview control using the properties window also.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 1

Expert Comment

by:riaz9
ID: 7101539
note: you need to set the imagelist to the treeview control using the properties window also.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7923797
Hi osmjahir,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept mcoop's comment(s) as an answer.

osmjahir, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7923801
Hi osmjahir,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept mcoop's comment(s) as an answer.

osmjahir, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7968484
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now