Navigating the Managed Exchange TreeView Control Sample Application Source Code

Topic Last Modified: 2006-06-12

The subprocedures related to using the managed Exchange TreeView control are listed by source file in the following table. For more information about the managed TreeView control application programming interface (API), see Managed ExchangeTreeView Control Reference.

Managed Exchange TreeView Control Sample Application (Form1.vb)

Function Description

OnSelectionEvent(ByVal o As Object, ByVal e As EventArgs)

Handles the TreeView control Selection event.

OnControlErrorEvent(ByVal o As Object, ByVal e As EventArgs)

Handles the TreeView control ControlError event.

OnControlGeneratedErrorEvent(ByVal o As Object, ByVal e As EventArgs)

Handles the TreeView control ControlGeneratedError event.

ButtonAddRoot_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

Adds a root node to the TreeView control.

ButtonRemoveRoot_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

Removes a root node from the TreeView control.

ButtonRemoveAllRoots_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

Removes all root nodes from the TreeView control.

CheckBoxDragDrop_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)

Sets the SetAllowDrag property to True if the check box is selected, sets it to False if it is not selected.

CheckBoxErrorsReturned_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)

Sets the SetReturnErrorOnly property to True if the check box is selected, sets it to False if it is not selected.

CheckBoxContextMenu_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)

Sets the SetAllowContextMenu property to True if the check box is selected, sets it to False if it is not selected.