🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #376

Re: Saving treeView nodes collection

#376
From: Jay
Date: Fri, 08 Apr 2005 12:40
27 lines
1997 bytes
Thanks for that Marc but what I decided to do was write a wee
recursive procedure that picks up each node position and
text and stores this in a string. This seemed the most hassle
free solution, particularly as I also want it to run in the 
Compact Framework.
It's not rocket science but it's working fine!

Jay

"Marc Rohloff [TeamB]" <"on request"> wrote:
>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: <42566d9a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <425503ff$1@newsgroups.borland.com> <1dlfew69pu0n6$.dlg@marcrohloff.40tude.net>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,686323d6de4ebfb8
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jay" <jay@not.the>
Sender: "Jay" <jay@not.the>
Reply-To: "Jay" <jay@not.the>
Subject: Re: Saving treeView nodes collection
Newsgroups: borland.public.csharpbuilder.language.csharp
X-User-Info: 195.166.149.38     
References: <425503ff$1@newsgroups.borland.com> <1dlfew69pu0n6$.dlg@marcrohloff.40tude.net>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <42566d9a$1@newsgroups.borland.com>
Date: 8 Apr 2005 04:40:10 -0800
X-Trace: newsgroups.borland.com 1112960410 207.105.83.66 (8 Apr 2005 04:40:10 -0800)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail