Page Rank

Subscribe

Categories

Recent posts

Alexa Rank

TreeView Control in VB


  • This topic helps to learn the working of TreeView control used in VB programming.
  • Tools needed: TreeView1 (TreeView1), Button1 (Button1).
  • User can expand the Tree node through clicking the plus sign (+) button. When a parent node expanded, its  child node become visible.

TreeView Control

  • The Windows Forms TreeView control displays a hierarchy of nodes, like the way files and folders are displayed in the left pane of the Windows Explorer feature in Windows operating systems.
  • The top level of the TreeView is called Root node that can be expanded or collapsed if they have a child node

TreeView.Nodes PropertyTreeView Control in VB

  • It helps to get the collection of tree nodes that are assigned to the tree view control.
  • Syntax for TreeView.Nodes Property

TreeView.SelectedNode PropertyTreeView Control in VB

  • It helps to get or set the tree node that is currently selected in the tree view control.
  • Syntax



TreeView.SelectedNode.FullPath PropertyTreeView Control in VB

  • The fullpath method of treeview control provides the path from root node to the selected node.
  • Syntax

TreeView.ShowPlusMinus PropertyTreeView Control in VB

  • It helps to change the values indicating whether plus-sign (+) and minus-sign (-) buttons are displayed next to tree nodes that contain child tree nodes.
  • Syntax

TreeView.ShowRootLines PropertyTreeView Control in VB

  • It helps to get or set the values indicating whether lines are drawn between the tree nodes that are at the root of the tree view
  • Syntax

TreeView Control in VBComplete Code

TreeView Control in VB

TreeView Control in VB

TreeView Control in VB


VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">