SelectedNodeChanged Event

Applies To
TreeView

Description
Occurs when the selected node has been changed.

Usage

Form_Control_SelectedNodeChanged(Sender$ As String, NodeName$ As String)
Sender$
Name of a control that sent the event.
NodeName$
Name of the selected node.

See Also
Tree View Control

Example

Function frmMain_TreeView1_SelectedNodeChanged(Sender$ As String, NodeName$ As String)
    Print NodeName$, " was selected."

    'Switch the page displayed in the wizard control based on the selected node  
    Integer wizardIndex  
    Select NodeName$  
        Case "TreeNode1"; wizardIndex = 0  
        Case "TreeNode2"; wizardIndex = 1  
        Case "TreeNode3"; wizardIndex = 2  
    Send  
	
    GSet frmMain.Wizard1.SelectedIndex, wizardIndex  
Fend