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
Solved

Nodes & Sub-Nodes selection

Posted on 2006-10-27
3
248 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Non-recursive backtracking, using a stack 1 171
C# DataGridView_RowsAdded event not firing 1 80
Cygwin - GNU GPL License 1 36
youtube blocking politics 4 55
A short article about a problem I had getting the GPS LocationListener working.
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

840 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