event SelectionChanged (Group as Group)
Fired after a new item is selected.

 TypeDescription 
   Group as Group A Group object where selection is changed.  
The group supports multiple selection. When an item is selected or unselected the control fires the SelectionChanged event. Use the SingleSel property to specify if your control supports single or multiple selection. Use the SelectCount property to get the number of selected items within the group. Use the SelectedItem property to access the selected item by its index. Use the SelectItem property to select programmatically an item.

The following sample displays the list of selected items within the group:

Private Sub ExplorerTree1_SelectionChanged(ByVal Group As EXPLORERTREELibCtl.IGroup)
    With Group.Items
        If (.SelectCount > 0) Then
            Dim i As Long
            For i = 0 To .SelectCount - 1
                Debug.Print .CellCaption(.SelectedItem(i), 0)
            Next
        End If
    End With
End Sub


Send comments on this topic.
© 1999-2008 Exontrol Inc, Software. All rights reserved.