Freetutes.com

VB6 beginners tutorial - Learn VB6

Advanced VB6 tutorial - Learn Advanced VB6

VB .NET - Learn Visual Basic .NET

Systems Analysis - System analysis and Design tutorial for Software Engineering


You are here: Visual Basic > Advanced VB6 tutorial > Chapter 4

TreeView Events of TreeView Control in Visual Basic 6

You can use several events of the TreeView control to code for actions taken by the user or to handle actions caused by code execution. In addition to standard control events such as Click and DblClick, the TreeView control has these following additional events:

  • Collapse Generated whenever a node in a TreeView control is collapsed.

    This event occurs in one of three ways: when the Expanded property of a node is set to False; when the user double-clicks on an expanded node; or when the user clicks on the +/- image for a node to collapse that node.

    The node that was collapsed is passed in as an argument to the event.

  • Expand Generated when a node in a TreeView is expanded.

    Like the Collapse event, Expand occurs in one of three instances: when the user double-clicks on a node that has children to expand that node; when the user clicks on the +/- image to expand a node; or when the Expanded property for the node is set to True.

    Expand also has one argument, the node object that was expanded.

  • NodeClick Occurs when a Node object is clicked by the user.

    The node that was clicked is passed in as an argument to the event.

    If the user clicks anywhere on the TreeView, other than on a node, the Click event for the TreeView control is fired instead.

Treeview Control topics

See Also


  

.<< Previous | Contents | Next >>

Home | About Us | Privacy Policy | Contact Us

Copyright © Freetutes.com | All Rights Reserved