Description: http://www.vb-helper.com/HowTo/savetree.zip
Purpose
Save and restore a TreeView from a file.
Method
To save, traverse the TreeView s node structure saving values needed to
recreate the data. To load, use the saved data.
This program uses the serialization concept from the book:
Ready-to-Run Visual Basic Algorithms, Second Edition
By Rod Stephens
1998, John Wiley & Sons, Inc.
ISBN 0-471-24268-3
This technique allows a program to save hierarchical information like the
data in a TreeView in a way that is easy to understand. For more information
go to www.vb-helper.com/vba2.htm.
Disclaimer
This example program is provided "as is" with no warranty of any kind. It is
intended for demonstration purposes only. In particular, it does no error
handling. You can use the example in any form, but please mention
www.vb-helper.com.
To Search:
File list (Check if you may need any files):
treeseriation\Form1.frm
.............\FORM1.FRX
.............\PROJECT1.VBP
.............\PROJECT1.vbw
.............\README.TXT
.............\TREEVIEW.SER
treeseriation