Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Does anybody know how a TreeNode knows when it has been added to a TreeView? How do you think .NET does it behind the scenes? I need to know this for a class I am making but there are no events that let me know when the TreeView property of a Node turns from Nothing into an actual TreeView. Any suggestions or even a point in the right direction would be great!
Posted
But how does it know when it has been added? Does the treenode collection tell the node a treeview is present? How does the Treenode Detect that a Treeview is now present? Does the Treeview set it? That's what i'm trying to find out. How do you think the internals set it? At some point, something has to notify the Node that it has been added to a collection that is part of a treeview.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...