|
-
Mar 22nd, 2011, 05:31 AM
#1
Thread Starter
Addicted Member
[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
-
Mar 22nd, 2011, 05:40 AM
#2
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.
-
Mar 22nd, 2011, 06:14 AM
#3
Thread Starter
Addicted Member
Re: In a button click event identify the each Treenode is it Collapsed or Expanded??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|