How to save a Treeview to file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I build an application for pocket pc 2002. I use a treeview control to store
information. Exist a method to store/retreave treeview to/from a file? I can
use another object to do this?

10x

FABIO
 
You have to do it manually by iterating each node (Nodes collection of
TreeNode). Write to a file with an XmlTextReader/XmlTextWriter or if you
don't want an XML file, try one of the classes in the System.IO namespace.
I'd be surprised if there wasn't a sample already on the web somewhere as it
should be straightforward...

Cheers
Daniel
 
I do it. I'm looking for to existing standard class/object which do this work.
exists???

FABIO
 
Back
Top