Article View: borland.public.csharpbuilder.language.csharp
Article #375Re: Saving treeView nodes collection
From: Marc Rohloff TeamB
Date: Thu, 07 Apr 2005 12:35
Date: Thu, 07 Apr 2005 12:35
16 lines
1835 bytes
1835 bytes
On 7 Apr 2005 02:57:19 -0800, Jay wrote: > I have a C# application that allows the user to dynamically > add, delete and check nodes in a treeView. What I need to do is > save to file the treeView nodes collection and repopulate it > with the saved configuration the next time the programme is run. I would guess that the easiest way is to make sure that your node subclasses all have the 'Serializable' attribute and use serialisation. If my guess is correct then you should be able to serialise the root node and all the others will be serialised automatically. -- Marc Rohloff [TeamB] marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID:
<1dlfew69pu0n6$.dlg@marcrohloff.40tude.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<425503ff$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,686323d6de4ebfb8 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Marc Rohloff [TeamB]" <"on request"> Subject: Re: Saving treeView nodes collection Newsgroups: borland.public.csharpbuilder.language.csharp User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit References: <425503ff$1@newsgroups.borland.com> Date: Thu, 7 Apr 2005 08:35:49 -0400 Message-ID: <1dlfew69pu0n6$.dlg@marcrohloff.40tude.net> X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR X-Antivirus: avast! (VPS 0514-1, 04/07/2005), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 4.131.32.149 X-Trace: newsgroups.borland.com 1112877095 4.131.32.149 (7 Apr 2005 05:31:35 -0800) Lines: 16 X-Authenticated-User: mrohloff Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail