![]() | Type | Description | ||
| Group as Group | A Group object being selected. |
Use the SelectGroup event to notify your application that a group is selected. The control fires the SelectItem event when the user clicks an item. The control fires the BeforeExpandGroup event before expanding a group. The control fires the ExpandGroup event after expanding a group.
The following VB sample displays the caption of the group being selected:
Private Sub ExplorerBar1_SelectGroup(ByVal Group As EXPLORERBARLibCtl.IGroup)
Debug.Print Group.Caption
End SubThe following C++ sample displays the caption of the group being selected:
void OnSelectGroupExplorerbar1(LPDISPATCH Group)
{
CGroup group( Group ); group.m_bAutoRelease = FALSE;
CString strOutput;
strOutput.Format("%s", (LPCTSTR)group.GetCaption() );
OutputDebugString( strOutput );
}The following VB.NET sample displays the caption of the group being selected:
Private Sub AxExplorerBar1_SelectGroup(ByVal sender As Object, ByVal e As AxEXPLORERBARLib._IExplorerBarEvents_SelectGroupEvent) Handles AxExplorerBar1.SelectGroup
With e.group
Debug.WriteLine(.Caption)
End With
End SubThe following C# sample displays the caption of the group being selected:
private void axExplorerBar1_SelectGroup(object sender, AxEXPLORERBARLib._IExplorerBarEvents_SelectGroupEvent e)
{
System.Diagnostics.Debug.WriteLine(e.group.Caption);
}The following VFP sample displays the caption of the group being selected:
*** ActiveX Control Event *** LPARAMETERS group with group wait window nowait .Caption endwith