Click here to Skip to main content
15,905,776 members
Articles / Programming Languages / C#
Article

Tree Builder

Rate me:
Please Sign up or sign in to vote.
2.67/5 (18 votes)
18 May 2003Public Domain 76.9K   1.5K   32   13
Tree Builder with MS Access.

Sample Image - TreeBuilder.jpg

Introduction

This is a Visual Studio 2003 Project. This is a TreeView Explorer with MDI, Copy, Cut, Paste, Drag and Drop Functionality.

The sample creates, edits, deletes and saves trees in an MS Access database.

To run the project, the database file must be in the same path of the executable. I developed it first on VB, but then I decided to change it into C#. It is a very good sample for all developers who wish to explore the functionality of the TreeView and TreeNode controls...

License

This article, along with any associated source code and files, is licensed under A Public Domain dedication


Written By
Software Developer (Senior) RIG Software, c.a.
United States United States
Lego and tic-tac addicted...

Comments and Discussions

 
PraiseTreeView Study Pin
Member 1412428520-Jan-19 20:36
Member 1412428520-Jan-19 20:36 
GeneralFormat of the DB Pin
theadmin30-Dec-07 12:12
theadmin30-Dec-07 12:12 
I know this is an old article and I just stumbled upon it. But what is the format of the Access DB? I tried creating and access DB with the following values, but since I am not familiar with the syntax I will give it my best shot.

Table Name: Nodes
Fields: NodeID, RootID, ParentID, Serial = {Number Field}
Fields: Name, Description, R, G, B: {Text Field}

If this is the format of the DB, somehow I cannot get it to work in VS2008 when trying to save the layout of the tree.

Can someone help me out here. I wish there was a sample DB posted with the article.

Thanks
GeneralThanks...^^ Pin
baesj894-Jul-07 2:33
baesj894-Jul-07 2:33 
GeneralGreat...! Pin
Anish M16-Nov-06 1:01
Anish M16-Nov-06 1:01 
Generalit's good ! but .... Pin
Member 151755515-May-05 0:30
Member 151755515-May-05 0:30 
GeneralRe: it's good ! but .... Pin
my liu12-Dec-05 22:54
my liu12-Dec-05 22:54 
GeneralEXCELLENT! Pin
godfathers10-Feb-05 20:25
godfathers10-Feb-05 20:25 
Generalhelpful Pin
Member 106875127-Aug-04 4:12
Member 106875127-Aug-04 4:12 
GeneralDragDrop Pin
Ernest Morariu21-Nov-03 6:00
Ernest Morariu21-Nov-03 6:00 
GeneralRe: DragDrop Pin
Guillermo Rivero21-Nov-03 7:31
Guillermo Rivero21-Nov-03 7:31 
GeneralExcellent Pin
ttyyuuii8-Sep-03 6:55
ttyyuuii8-Sep-03 6:55 
GeneralThis is a VS.NET 2003 project Pin
Ray Cassick19-May-03 3:42
Ray Cassick19-May-03 3:42 
GeneralRe: This is a VS.NET 2003 project Pin
Guillermo Rivero19-May-03 3:52
Guillermo Rivero19-May-03 3:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.