?
Solved

TreeView

Posted on 2002-06-23
8
Medium Priority
?
297 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
[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
8 Comments
 
LVL 4

Accepted Solution

by:
mcoop earned 200 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Suggested Courses
Course of the Month8 days, 3 hours left to enroll

765 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