Solved

TreeView

Posted on 2002-06-23
8
294 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
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
 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

828 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