Solved

Nodes & Sub-Nodes selection

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Progress

622 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