![]() | Type | Description | ||
| Group as Group | A Group object being expanded or collapsed. | |||
| Cancel as Variant | A boolean expression that indicates whether the expanding/collapsing operation is canceled. |
The following sample disables expanding or collapsing the second group:
Private Sub ExplorerTree1_BeforeExpandGroup(ByVal Group As EXPLORERTREELibCtl.IGroup, Cancel As Variant)
Cancel = Group.Index = 1
End Sub