Solved

TreeView

Posted on 2002-06-23
8
295 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 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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

734 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