Solved

Nodes & Sub-Nodes selection

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 …

707 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

15 Experts available now in Live!

Get 1:1 Help Now