Solved

Nodes & Sub-Nodes selection

Posted on 2006-10-27
3
247 Views
Last Modified: 2010-04-16
I’m new to VB.net (2003) and I want to create an index type app.

I have a Treeview with nodes & sub-nodes

e.g.

+ Hardware
    - Desktop
    - Laptop
+ Software
     - Word errors
     - Excel errors

With assistance from an Expert from a previous Question… I was able to select Hardware (node) and select sub-nodes which if double-clicked would activate a popup form.

The problem I’m having is selecting the other Nodes (ie Software) Node and its sub-nodes).

Can anyone help
0
Comment
Question by:RobertoFreemano
  • 2
3 Comments
 
LVL 5

Expert Comment

by:consulteware
ID: 17822684
If you specify if your problem is on WinForms or WebForms could help in answering your question.
0
 

Author Comment

by:RobertoFreemano
ID: 17824904
Sorry - Winforms.
0
 
LVL 5

Accepted Solution

by:
consulteware earned 70 total points
ID: 17825085
Just Create one form, one Tree View and one Button and in the Button put this code on it and test it and see if it is what you want.

        Dim mainnode As TreeNode = New TreeNode("Main Node")
        mainnode.Nodes.Add("test1")
        mainnode.Nodes.Add("test2")
        mainnode.Nodes.Add("test3")
        TreeView1.Nodes.Add(mainnode)

0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
A short article about problems I had with the new location API and permissions in Marshmallow
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

815 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

9 Experts available now in Live!

Get 1:1 Help Now