Exporting TreeView List

Hey there,
I'm creating a database GUI using TreeView Controls and I was wondering if there is any way I can export the TreeView list, as a whole and stream it to a file.

Initially I was just going to create a class, with a corresponding node struct for each item but, I feel the process of double handling the information is a little inefficient.

I was looking at the TreeView Class in Windows Forms but, I don't know how to use Ref Classes.
I would be able to create the TreeView Control Dynamically and store the class instance to a file using the TreeView Class, couldn't I?

I'm a little bit unsure of what the best way to this is...

Any help will be appreciated.
create item list in std:vector and use this structure to fill tree view. When saving to file, use only vector. Its common to access data and gui elements desperately.
Topic archived. No new replies allowed.