Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / January 2008

Tip: Looking for answers? Try searching our database.

Find the parent node

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob Stevens - 07 Jan 2008 15:49 GMT
When restoring nodes to a tree, how can you tell what is
the parent of that node?

Also how can you get a handle to the parent node, this way
you can insert the node into the correct place?

example.

Parent1, Level0
Child1, Level1
Child2, Level1
Child3, Level2
Child4, Level3

This would look like

Parent1
-Child1
-Child2
   -Child3
     -Child4

If I insert Parent1 into the tree, how can I get a handle back to parent1
when
I get ready to insert Child1 into the tree and vice versa for all the other
nodes.

Appreciate the help.

Rob
Peter Duniho - 07 Jan 2008 18:44 GMT
> When restoring nodes to a tree, how can you tell what is
> the parent of that node?

The last time you asked this question, I posted a detailed answer along  
with a link to another post I'd written as a response to a very similar  
question asked by someone else.

You replied that the information appeared helpful and that you would try  
using it.

The TreeView and TreeNode classes haven't changed since I made that post,  
so there's not really anything new anyone can offer.  What about the  
previous information provided to you have you been having trouble with?

Pete

p.s. The thread's name was "Unique identifier in every treenode".  For  
some reason, while it's still in my local newsgroup message cache, I  
cannot find that thread in Google Groups.  I don't suppose anyone has any  
idea why that is, do that?  It seems to be in all sorts of other archives  
of this newsgroup (do a regular web search on Google and you'll find it).  
But not in the Google Groups archive.  Very odd.
Rob Stevens - 07 Jan 2008 19:35 GMT
Not a problem, let me look at it again.

Thanks

> p.s. The thread's name was "Unique identifier in every treenode".  For
> some reason, while it's still in my local newsgroup message cache, I
> cannot find that thread in Google Groups.  I don't suppose anyone has any
> idea why that is, do that?  It seems to be in all sorts of other archives
> of this newsgroup (do a regular web search on Google and you'll find it).
> But not in the Google Groups archive.  Very odd.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.