Solved

import text file data in to Treeview in VB.NET 2003

Posted on 2007-03-31
3
303 Views
Last Modified: 2011-10-03
Hi, I'm trying to create a small vb app which automatically loads text from a txt file into Treeview - e.g.:

rootnode 1
  childnode 1
  childnode 2
rootnode 2
  etc...
----------------------------
TEXT FILE.TXT

"rootnode 1", "childnode 1", "childnode 2"
"rootnode 2", "childnode 1", "childnode 2"
----------------------------

So if I add a new line to the text file, it should update the treeview in my application.

Cheers,
Roberto
0
Comment
Question by:RobertoFreemano
3 Comments
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 125 total points
Comment Utility
see an article I have written about the Treeview control: http://www.emoreau.com/Entries/Articles/2006/04/The-Treeview-control.aspx
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 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