Tree View in VB 6

Posted on 2009-04-28
Medium Priority
Last Modified: 2013-11-26
I need to know about Tree View in VB6. I dont know much about this.
So Please help me to let me know about Tree View,how to populate nodes, how to add Graphical symbol on these nodes,how to create child nodes.
and also i need to add information to each node which should get displayed on the right side of the form as we click the node.
Needs Help
With Regards
Question by:Showkatdar
  • 2
  • 2
LVL 48

Accepted Solution

jpaulino earned 750 total points
ID: 24252752
LVL 10

Assisted Solution

borgunit earned 750 total points
ID: 24252991

Author Comment

ID: 24253048
Dear jpaulino
I have already checked the link u specified. I need to placed Images with Nodes and also a detailed information should get displayed on right side of the form
With Regards
LVL 10

Expert Comment

ID: 24253086
One thing I have done is add delimited TEXT to the node (and when clicked , I pull and parse the TEXT and display it off to the side). This is a way to keep detailed info with the node.
LVL 48

Expert Comment

ID: 24253599
In the treeview node method you can define the text and the image (normal and selected).
TreeView1.Nodes.Add(relative, relationship, key, text, image, selectedimage)
You just need to add an imagelist and include the images you want and then you define the index number. You also need to define what imagelist for treeview .

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

850 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