Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Nodes & Sub-Nodes selection

Posted on 2006-10-27
3
Medium Priority
?
251 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
[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
  • 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 140 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
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 …
Starting up a Project

688 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