event SelectItem (Item as Item)
Occurs when an item is selected.

TypeDescription
Item as Item An Item object being selected.

Use the SelectItem event to notify your application that a new item is selected ( clicked ). The SelectItem event is fired when the user presses the ENTER key, and the ShowFocusRect property is True. The HighLightItem event occurs when the cursor hovers an item. Use the Caption property to get the caption of the item. Use the Caption property to get the caption of the group.

Syntax for SelectItem event, /NET version, on:

private void SelectItem(object sender,exontrol.EXPLORERBARLib.Item Item)
{
}

Private Sub SelectItem(ByVal sender As System.Object,ByVal Item As exontrol.EXPLORERBARLib.Item) Handles SelectItem
End Sub

Syntax for SelectItem event, /COM version, on:

private void SelectItem(object sender, AxEXPLORERBARLib._IExplorerBarEvents_SelectItemEvent e)
{
}

void OnSelectItem(LPDISPATCH Item)
{
}

void __fastcall SelectItem(TObject *Sender,Explorerbarlib_tlb::IItem *Item)
{
}

procedure SelectItem(ASender: TObject; Item : IItem);
begin
end;

procedure SelectItem(sender: System.Object; e: AxEXPLORERBARLib._IExplorerBarEvents_SelectItemEvent);
begin
end;

begin event SelectItem(oleobject Item)
end event SelectItem

Private Sub SelectItem(ByVal sender As System.Object, ByVal e As AxEXPLORERBARLib._IExplorerBarEvents_SelectItemEvent) Handles SelectItem
End Sub

Private Sub SelectItem(ByVal Item As EXPLORERBARLibCtl.IItem)
End Sub

Private Sub SelectItem(ByVal Item As Object)
End Sub

LPARAMETERS Item

PROCEDURE OnSelectItem(oExplorerBar,Item)
RETURN

Syntax for SelectItem event, /COM version (others), on:

<SCRIPT EVENT="SelectItem(Item)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function SelectItem(Item)
End Function
</SCRIPT>

Procedure OnComSelectItem Variant llItem
	Forward Send OnComSelectItem llItem
End_Procedure

METHOD OCX_SelectItem(Item) CLASS MainDialog
RETURN NIL

void onEvent_SelectItem(COM _Item)
{
}

function SelectItem as v (Item as OLE::Exontrol.ExplorerBar.1::IItem)
end function

function nativeObject_SelectItem(Item)
return

The following VB sample displays the caption of the item being selected:

Private Sub ExplorerBar1_SelectItem(ByVal Item As EXPLORERBARLibCtl.IItem)
    Debug.Print Item.Caption
End Sub

The following C++ sample displays the caption of the item being selected:

void OnSelectItemExplorerbar1(LPDISPATCH Item) 
{
	CItem item( Item ); item.m_bAutoRelease = FALSE;
	CString strOutput;
	strOutput.Format("%s", (LPCTSTR)item.GetCaption() );
	OutputDebugString( strOutput );		
}

The following VB.NET sample displays the caption of the item being selected:

Private Sub AxExplorerBar1_SelectItem(ByVal sender As Object, ByVal e As AxEXPLORERBARLib._IExplorerBarEvents_SelectItemEvent) Handles AxExplorerBar1.SelectItem
    With e.item
        Debug.WriteLine(.Caption)
    End With
End Sub

The following C# sample displays the caption of the item being selected:

private void axExplorerBar1_SelectItem(object sender, AxEXPLORERBARLib._IExplorerBarEvents_SelectItemEvent e)
{
	System.Diagnostics.Debug.WriteLine(e.item.Caption);
}

The following VFP sample displays the caption of the item being selected:

*** ActiveX Control Event ***
LPARAMETERS item

with item
	wait window nowait .Caption
endwith