Results 1 to 3 of 3

Thread: [RESOLVED] In a button click event identify the each Treenode is it Collapsed or Expanded??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2010
    Posts
    229

    Resolved [RESOLVED] In a button click event identify the each Treenode is it Collapsed or Expanded??

    Hi i am working vb.net08.
    And present in my form one treecontrol and 3 buttons and one datagridview are there.
    present my task is if i click any button first it should check the treeview control for each parent node if any parent node is expanded?? or Collapsed???

    How can i write in a button click event for check each parent node is it expand or collapse???

    Thanks

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: In a button click event identify the each Treenode is it Collapsed or Expanded??

    TreeView.SelectedNode tells you which one is selected. The TreeNode object (which comes back from the previous link) has a property called .IsExpanded which gives you the info you need. If you want to walk up and down the tree (ie parents, children) there are also properties for that on the TreeNode object.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2010
    Posts
    229

    Re: In a button click event identify the each Treenode is it Collapsed or Expanded??

    Thanks It helps me a lot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width